fay59 / fcd

An optimizing decompiler
http://zneak.github.io/fcd
Other
701 stars 70 forks source link

nullptr dereference #35

Closed Trass3r closed 7 years ago

Trass3r commented 7 years ago

Nice catch by clang static analyzer in https://github.com/zneak/fcd/blob/master/fcd/callconv/anyarch_anycc.cpp#L179:

 5: Assuming 'load' is non-null in anyarch_anycc.cpp:146
 6: 'load' initialized to a null pointer value in anyarch_anycc.cpp:179
 7: Called C++ object pointer is null in anyarch_anycc.cpp:181

Also shows -Werror=shadow would be good.

fay59 commented 7 years ago

It's worth fixing, but anyarch_anycc is terribly broken and can't be used with most of fcd's newer and nicer features around calling conventions.