Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaks in function benchmark. #176

Open
yangfar opened this issue Oct 21, 2022 · 0 comments
Open

Memory leaks in function benchmark. #176

yangfar opened this issue Oct 21, 2022 · 0 comments

Comments

@yangfar
Copy link

yangfar commented Oct 21, 2022

Detail

=================================================================
==1082665==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 16384 byte(s) in 4 object(s) allocated from:
#0 0x495dcd in malloc (/home/hjsz/fuzz_software/lodepng-master/benchmark+0x495dcd)
#1 0x4fee62 in lodepng_malloc(unsigned long) /home/hjsz/fuzz_software/lodepng-master/lodepng.cpp:78:10
#2 0x4fee62 in lodepng_decode(unsigned char**, unsigned int*, unsigned int*, LodePNGState*, unsigned char const*, unsigned long) /home/hjsz/fuzz_software/lodepng-master/lodepng.cpp:5055:28
#3 0x52ecfc in testDecode(std::vector<unsigned char, std::allocator > const&) /home/hjsz/fuzz_software/lodepng-master/lodepng_benchmark.cpp:197:26
#4 0x5318a5 in testFile(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) /home/hjsz/fuzz_software/lodepng-master/lodepng_benchmark.cpp:261:5
#5 0x533b28 in main /home/hjsz/fuzz_software/lodepng-master/lodepng_benchmark.cpp:312:5
#6 0x7f6fd43cf082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16

SUMMARY: AddressSanitizer: 16384 byte(s) leaked in 4 allocation(s).
Thanks for your time.

I saw the issues #165 , It should be the same problem. If the crash occues when normal user use the function rather than fuzzing the function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant