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

Exceeds maximum supported memory when processing gif with excessive w*h #61

Closed
tank0123 opened this issue Jul 7, 2021 · 0 comments · May be fixed by #63
Closed

Exceeds maximum supported memory when processing gif with excessive w*h #61

tank0123 opened this issue Jul 7, 2021 · 0 comments · May be fixed by #63

Comments

@tank0123
Copy link

tank0123 commented Jul 7, 2021

I've attached the file. Please download and check the file.
2021-05-17-08_03_08_0x01bbb035_0xb1c1261c.zip

==18760==ERROR: LeakSanitizer: requested allocation size 0xffffffff80fe7f01 exceeds maximum supported size of 0x200000000
#0 0x7fe9eb6399c1 in __interceptor_malloc ../../../../src/libsanitizer/lsan/lsan_interceptors.cpp:54
#1 0x55ef228fdbf0 in stbi__malloc /home/ubuntu/catimg-2.7.0/src/stb_image.h:871
#2 0x55ef228fdbf0 in stbi__gif_load_next /home/ubuntu/catimg-2.7.0/src/stb_image.h:6484
#3 0x55ef228fe262 in stbi__xload_main /home/ubuntu/catimg-2.7.0/src/sh_image.c:29
#4 0x55ef22905cf4 in stbi__xload_main /home/ubuntu/catimg-2.7.0/src/sh_image.c:17
#5 0x55ef22905dc0 in stbi_xload /home/ubuntu/catimg-2.7.0/src/sh_image.c:106
#6 0x55ef2290609c in img_load_from_file /home/ubuntu/catimg-2.7.0/src/sh_image.c:202
#7 0x55ef228f95db in main /home/ubuntu/catimg-2.7.0/src/catimg.c:146
#8 0x7fe9eb3100b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)

==18760==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: LeakSanitizer: allocation-size-too-big ../../../../src/libsanitizer/lsan/lsan_interceptors.cpp:54 in __interceptor_malloc

@tank0123 tank0123 changed the title Excessive size w, h of *g causes memory in leak stbi__gif_load_next function Exceeds maximum supported memory when processing gif with excessive w*h Jul 8, 2021
@posva posva closed this as completed Jul 12, 2021
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

Successfully merging a pull request may close this issue.

2 participants