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
Related to another issue where ctjhai's code returns wrong minimum distance results for codes with very long lengths. We should set and document a maximum length -- can switch to using long ints to allow for a pretty huge size -- and include a check before calling malloc (better yet, before even calling the C code).
Hi,
It seems that there exists a potential integer overflow. Please find the following description:
M->cols can be an arbitrary large number
guava/src/ctjhai/minimum-weight.c
Line 147 in 685d1d5
Call to malloc with the large integer can cause a memory allocation with an overflowed size
guava/src/ctjhai/minimum-weight.c
Line 152 in 685d1d5
The text was updated successfully, but these errors were encountered: