OpenImageIO: AddressSanitizer: allocator is out of memory
version: 2.4 12.0 ./bin/iconvert crash_000122 1.png
=================================================================
==121851==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x3b7f84804 bytes
#0 0x4c9e6d in operator new[](unsigned long) (/root/oiio/build/bin/iconvert+0x4c9e6d)
#1 0x7f22ca2b4b9d in OpenImageIO_v2_4::ImageOutput::copy_image(OpenImageIO_v2_4::ImageInput*) /root/oiio/src/libOpenImageIO/imageoutput.cpp:587:36
#2 0x4d169b in convert_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/oiio/src/iconvert/iconvert.cpp:449:27
#3 0x4cd218 in main /root/oiio/src/iconvert/iconvert.cpp:523:14
#4 0x7f22c87f2082 in __libc_start_main /build/glibc-SzIz7B/glibc-2.31/csu/../csu/libc-start.c:308:16
==121851==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: out-of-memory (/root/oiio/build/bin/iconvert+0x4c9e6d) in operator new[](unsigned long)
==121851==ABORTING
poc: crash_000122.zip
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Comments: 18 (1 by maintainers)
Commits related to this issue
- fix: various protections against corrupted files (#3954) Fixes #3952 Several interrelated fixes to guard against corrupted files: * Extend the `limits:imagesize_MB` sanity check to Targa files ... — committed to AcademySoftwareFoundation/OpenImageIO by lgritz 10 months ago
- fix: various protections against corrupted files (#3954) Fixes #3952 Several interrelated fixes to guard against corrupted files: * Extend the `limits:imagesize_MB` sanity check to Targa files to a... — committed to lgritz/OpenImageIO by lgritz 10 months ago
I’m currently leaning toward 3, but raising the fraction to 1, so that the only cases where we might have a false positive for small-memory users are ones where they will end up swapping anyway. We can always revisit if this is causing problems for people.