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 leak in imagew-cmd #10

Closed
bestshow opened this issue Apr 3, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@bestshow
Copy link

commented Apr 3, 2017

on ImageWorsener 1.3.0

#imagew $FILE out.png

Direct leak of 8651115 byte(s) in 1 object(s) allocated from:
#0 0x4e0ad6 in malloc /home/haojun/Downloads/llvm-clang/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:66
#1 0x529b7b in my_mallocfn /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-cmd.c:794:9
#2 0x5aa33a in iw_malloc_ex /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-util.c:48:8
#3 0x5aa48a in iw_malloc_large /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-util.c:77:9
#4 0x56ffe4 in bmpr_read_uncompressed /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-bmp.c:665:32
#5 0x5698be in iwbmp_read_bits /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-bmp.c:910:7
#6 0x5672e8 in iw_read_bmp_file /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-bmp.c:980:6
#7 0x566c20 in iw_read_file_by_fmt /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-allfmts.c:66:12
#8 0x519fbe in iwcmd_run /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-cmd.c:1191:6
#9 0x516623 in iwcmd_main /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-cmd.c:3018:7
#10 0x5164f1 in main /home/haojun/Downloads/testopensourcecode/imageworsener-master/src/imagew-cmd.c:3067:9
#11 0x7fc89228fb34 in __libc_start_main (/lib64/libc.so.6+0x21b34)

8651115 byte(s) leaked in 1 allocation(s).

testcase:
https://github.com/bestshow/p0cs/blob/master/1048-memoryleak-imagew-cmd

Author: ADLab of Venustech

@jsummers

This comment has been minimized.

Copy link
Owner

commented Apr 5, 2017

Should be fixed by commit 49912f8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.