You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes severe undefined behavior. When doing boolean comparision in eg: tsschecker is_ota param for one of the functions, it returns true because its reading random 2 extra bytes instead of just the boolean value. Those extra bytes can be any memory, one or zero. This is really bad.
Proposed fix:
Why don't you just include stdbool instead?
#include <stdbool.h>
The text was updated successfully, but these errors were encountered:
When you define your own bool implementation, the msys2 compiler(s) define the bool enum as 4 bytes!
libfragmentzip/include/libfragmentzip/libfragmentzip.h
Lines 40 to 43 in 2dcd708
This causes severe undefined behavior. When doing boolean comparision in eg: tsschecker is_ota param for one of the functions, it returns true because its reading random 2 extra bytes instead of just the boolean value. Those extra bytes can be any memory, one or zero. This is really bad.
Proposed fix:
Why don't you just include stdbool instead?
The text was updated successfully, but these errors were encountered: