You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have ran into an issue with the ResourceCompiler on address-sanitized builds.
It crashes when trying to access the JSON maniffest in an archive (in validateManifestInArchive()).
The call to mz_zip_reader_extract_file_to_heap() does not include a null terminator for the string in
its allocated buffer, although the memory beyond seems zeroed-out. In address-sanitized builds
this space is guarded, causing the program to abort during construction of the istringstream a few
lines below.
* Made changes to ResourceCompiler.cpp to remove ASAN and TSAN errors
* Removed tsan_suppressions.txt from the repo
Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>
Hi guys!
I have ran into an issue with the ResourceCompiler on address-sanitized builds.
It crashes when trying to access the JSON maniffest in an archive (in validateManifestInArchive()).
The call to mz_zip_reader_extract_file_to_heap() does not include a null terminator for the string in
its allocated buffer, although the memory beyond seems zeroed-out. In address-sanitized builds
this space is guarded, causing the program to abort during construction of the istringstream a few
lines below.
I have included a patch that fixes this issue.
The text was updated successfully, but these errors were encountered: