Open skorpion98 opened 4 weeks ago
Harmless. If the calloc fails due to an overlarge user-input value, it fails with an Out of memory error. But I fail now earlier when the size is > INTMAX_MAX.
And we only need the failing input file and cmdline to reproduce for the next time.
Describe the bug
In file in_dxf.c, function
add_ent_preview()
invokes thecalloc()
function with an invalid value when a specific input is provided (0x7fffffffffffffff
with the attached input).To Reproduce
Due to size constraints of this report, the archive we used to perform our tests is available at this link, and it contains:
To reproduce the errors, simply run the given binary on the provided testcase files with a command like
./llvmfuzz /path_to_testcases/input
The program has been tested on the OSS-Fuzz Docker image for this project using Ubuntu 20.04.During the compilation,we compiled using Address Sanitizer using the flag
--sanitizer=address
.The hash commit used to perform the tests is
27118c4
.Environment