MD5 hash calculates differently on server

前端 未结 5 1983
一个人的身影
一个人的身影 2020-12-16 19:24

I am running some code that I have written in C which calls the md5 hashing functionality from a hashing library that someone else wrote (md5.c & md5.h). The odd behavi

5条回答
  •  不知归路
    2020-12-16 20:24

    Different compilers can have different levels of standard compliance. If you run into a sub-standard compiler you can have hard times seeing that well-tested code has been compiled to something working entirely different.

    It can also happen that the target system is 64-bit and the code has 64-bit portability issues.

    The only way to solve the problem is to debug where exactly the two versions of your code behave differently.

提交回复
热议问题