Hi,
It seems that there exists a potential integer overflow. Please find the following description:
-
M->cols can be an arbitrary large number
|
if ( fscanf(fptr, "%d %d %d\n", &M->rows, &M->cols, &M->q) < 0 ) { |
-
Call to malloc with the large integer can cause a memory allocation with an overflowed size
|
M->m[i] = (unsigned int *)malloc(M->cols * sizeof(unsigned int)); |
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