Skip to content

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

@tank0123

Description

@tank0123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions