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

SEGV on TinyTIFFReader_readNextFrame #24

Closed
3iang opened this issue Dec 12, 2023 · 1 comment
Closed

SEGV on TinyTIFFReader_readNextFrame #24

3iang opened this issue Dec 12, 2023 · 1 comment

Comments

@3iang
Copy link

3iang commented Dec 12, 2023

This testcase causes a SEGV error in tinytiff reader

poc.zip


AddressSanitizer:DEADLYSIGNAL
=================================================================
==66152==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f02665939d0 bp 0x7fffd0033cb0 sp 0x7fffd0033478 T0)
==66152==The signal is caused by a READ memory access.
==66152==Hint: address points to the zero page.
    #0 0x7f02665939d0  (/lib/x86_64-linux-gnu/libc.so.6+0xc49d0) (BuildId: a43bfc8428df6623cd498c9c0caeb91aec9be4f9)
    #1 0x55c20a6e88c1 in __asan_memcpy (/src/tiff/TinyTIFF/build/tiffr+0xa88c1) (BuildId: 7b113ae05a01f00888d9b4f231fa4d8a92e154ea)
    #2 0x55c20a73c962 in TinyTIFFReader_readNextFrame /src/tiff/TinyTIFF/src/tinytiffreader.c
    #3 0x55c20a73ae69 in TinyTIFFReader_open /src/tiff/TinyTIFF/src/tinytiffreader.c:921:9
    #4 0x55c20a72ed5a in main /src/tiff/TinyTIFF/tests/tinytiffreader_test/tinytiffreader_test.cpp:506:10
    #5 0x7f02664f8d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: a43bfc8428df6623cd498c9c0caeb91aec9be4f9)
    #6 0x7f02664f8e3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f) (BuildId: a43bfc8428df6623cd498c9c0caeb91aec9be4f9)
    #7 0x55c20a666664 in _start (/src/tiff/TinyTIFF/build/tiffr+0x26664) (BuildId: 7b113ae05a01f00888d9b4f231fa4d8a92e154ea)
@3iang
Copy link
Author

3iang commented Dec 12, 2023

This was dupilcate with #19 and so closed

@3iang 3iang closed this as completed Dec 12, 2023
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