Are you sure that this is not caused by ASan? In my amd64 server this uses 2.5 - 4G of memory and keeps processing the sample for at least few hours. Maybe a denial of service issue.
An issue was discovered in Bento4 1.5.1-627. The AP4_StcoAtom class in Core/Ap4StcoAtom.cpp has an attempted excessive memory allocation when called from AP4_AtomFactory::CreateAtomFromStream in Core/Ap4AtomFactory.cpp, as demonstrated by mp42hls.
If you run mp42hls built without ASAN on this 1 KB file, it consumes a steady 8 GB of RAM and does not terminate. (ASAN needs a small constant multiple of the application RAM. If it has failed to allocate 4 GiB, I guess the application had requested between 1 and 4 GiB.)
A crafted input will lead to Memory allocation failed in Ap4StcoAtom.cpp at Bento4 1.5.1-627
Triggered by
./mp42hls crash7.mp4
Poc
crash7.mp4.zip
Bento4 Version 1.5.1-627
The ASAN information is as follows:
FoundBy: yjiiit@aliyun.com
The text was updated successfully, but these errors were encountered: