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
because sizeof(bool) is not the same as sizeof(int), If someone put a bool var as the last param into funciton int mjson_get_bool(const char *s, int len, const char *path, int *v), adjacent memory with bool var may be overwritten.
So I suggest change the function to signature to int mjson_get_bool(const char *s, int len, const char *path, bool* b) since the name says "get bool"
The text was updated successfully, but these errors were encountered:
because sizeof(bool) is not the same as sizeof(int), If someone put a bool var as the last param into funciton
int mjson_get_bool(const char *s, int len, const char *path, int *v)
, adjacent memory with bool var may be overwritten.So I suggest change the function to signature to
int mjson_get_bool(const char *s, int len, const char *path, bool* b)
since the name says "get bool"The text was updated successfully, but these errors were encountered: