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
The struct member right_red is used in several functions, such as
rb_node_set_right(). It has been reported by infer and LLVM static
analyzer that right_red isn't initialized before used.
By tracing the node initialization function calls (starting from
map_create_node), it can be seen that rb_node_set_right is the function
where right_red is attempted to be initialized, but we are indeed
performing &1 on an uninitialized value.
In this commit, a change to using calloc guarantees the struct members
will be zeroed out during allocation, which in terms serves as
initialization.
Running infer on the codebase, we would get the following report
The text was updated successfully, but these errors were encountered: