Thanks to visit codestin.com
Credit goes to github.com

Skip to content

segfault in stbi__getn #39

@tianxiaogu

Description

@tianxiaogu

Download and unzip the attached file. Maybe a duplicate of #38.

7.zip

=================================================================
==22453==ERROR: AddressSanitizer: SEGV on unknown address 0x7ff9f2ecef30 (pc 0x7ffbf645b5e8 bp 0x7fff3111b6b0 sp 0x7fff3111ae38 T0)
==22453==The signal is caused by a WRITE memory access.
    #0 0x7ffbf645b5e7  /build/glibc-OTsEL5/glibc-2.27/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:339
    #1 0x4e472d in __asan_memcpy /home/t/Projects/lldb-testing/llvm/projects/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cc:23
    #2 0x5ae214 in stbi__getn /home/t/Projects/afl/fuzzing-experiments/subjects/catimg/src/stb_image.h:1273:10
    #3 0x5ae214 in stbi__tga_load /home/t/Projects/afl/fuzzing-experiments/subjects/catimg/src/stb_image.h:5012
    #4 0x5ae214 in stbi__load_main /home/t/Projects/afl/fuzzing-experiments/subjects/catimg/src/stb_image.h:975
    #5 0x556121 in stbi__xload_main /home/t/Projects/afl/fuzzing-experiments/subjects/catimg/src/sh_image.c:72:26
    #6 0x5bea05 in stbi_xload /home/t/Projects/afl/fuzzing-experiments/subjects/catimg/src/sh_image.c:92:18
    #7 0x5bea05 in img_load_from_file /home/t/Projects/afl/fuzzing-experiments/subjects/catimg/src/sh_image.c:188
    #8 0x52836c in main /home/t/Projects/afl/fuzzing-experiments/subjects/catimg/src/catimg.c:115:9
    #9 0x7ffbf63c1b96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
    #10 0x41bbe9 in _start (/home/t/Projects/afl/fuzzing-experiments/subjects/catimg/bin/catimg+0x41bbe9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /build/glibc-OTsEL5/glibc-2.27/string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:339 
==22453==ABORTING

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions