Read out of bounds in FM.exe when archive is open using parser
A free file archiver for extremely high compression
Brought to you by:
ipavlov
When I open an archive in FM.exe using parser (-t# switch) and invoke context menu on a file in archive, I get access violation in x64 build. In 32-bit build the AV seems to be masked by Windows, but no menu is shown either.
The exception occurs in Agent.h in CAgent::IsThereReadOnlyArc:
if (!g_CodecsObj->Formats[arc.FormatIndex].UpdateEnabled || arc.IsReadOnly) return true;
arc.FormatIndex here is set to -1 when the archive type is Parser.
At least 15.05 and 15.06 are affected.
I'll fix it
Thanks for report!