Gladman AES library - safe to ignore compiler warnings?
Compiling the current gladman AES library
, I'm getting warnings in aes_modes.c
, all saying "warning C4731: ... frame pointer register 'ebx' modified by inline assembly code"
This sounds pretty worrying, I don't want my app to crash with 开发者_如何学Goa stack corruption, but I can barely read x86 assembler. Can anyone advise if these warnings can be safely ignored?
This is safe to ignore if its saved and restored. For eg.
push ebx
;use the ebx to do something else
pop ebx
See this MSDN page, which explains what that error means.
If its not done in the code, you can add that and test it.
It seems it is NOT safe to ignore this warning. The code had been working fine on XP, but when tested on Windows 7 it crashes within the aes_decrypt assembler routine. I am going to move over to a pure C version.
精彩评论