Closed sleicasper closed 2 years ago
No issue observed in master
https://github.com/syoyo/tinyexr/commit/0c48a75b0946836df84fee69703ec1b6ed610247
$ clang++ -fsanitize=address -Wno-padded -Weverything -Werror -Wall -Wextra -std=c++11 -g -O0 -DTINYEXR_USE_MINIZ=1 -DTINYEXR_USE_PIZ=1 -I./deps/miniz -o test_tinyexr test_tinyexr.cc miniz.o
$ ./test_tinyexr poc
Header err. code -1
Well, I can still reproduce this issue
You need to post compilation procedure in detail.
You need to post compilation procedure in detail.
clang -c deps/miniz/miniz.c -o miniz.o
clang++ -fsanitize=address -Wno-padded -Weverything -Werror -Wall -Wextra -std=c++11 -g -O0 -DTINYEXR_USE_MINIZ=1 -DTINYEXR_USE_PIZ=1 -I./deps/miniz -o test_tinyexr test_tinyexr.cc miniz.o
./test_tinyexr poc
clang++ -fsanitize=address -Wno-padded -Weverything -Werror -Wall -Wextra -std=c++11 -g -O0 -DTINYEXR_USE_MINIZ=1 -DTINYEXR_USE_PIZ=1 -I./deps/miniz -o test_tinyexr test_tinyexr.cc miniz.o
./test_tinyexr poc
Still no issue with it. Reports Header err. code -1
Found you are attaching wrong POC file. Seems a Core audio file? Magic header starts with caff
clang++ -fsanitize=address -Wno-padded -Weverything -Werror -Wall -Wextra -std=c++11 -g -O0 -DTINYEXR_USE_MINIZ=1 -DTINYEXR_USE_PIZ=1 -I./deps/miniz -o test_tinyexr test_tinyexr.cc miniz.o ./test_tinyexr poc
Still no issue with it. Reports
Header err. code -1
Found you are attaching wrong POC file. Seems a Core audio file? Magic header starts with
caff
your are right.
new poc:
Thanks! Confirmed the issue is now reproducible.
Your PR to fix the issue is much appreciated.
Close the issue to avoid CVE FUD
desc
There is a heap based buffer overflow in tinyexr::DecodePixelData before 20220506 that could cause remote code execution depending on the usage of this program.
asan output
reproduce
./test/fuzzer ./poc