SErrFormatAndDisplay
function · storm · orchestration
- Address
0x64d080· 81 bytes, up to0x64d0d0- Signature
void __fastcall (uint32_t code, const char *file, uint32_t line, const char *format, va_list args, uint32_t arg5, uint32_t arg6)- Meaning
- Formats a message into 2048 bytes with _vsnprintf and passes it with the code, file and line to 0x64d100
- Confidence
- verified, proof one
- Finding
- storm/errorlog#fatal-error-display
Finding: Fatal error display in storm: error logs and crash dumps
SErrDisplayAppFatal(fmt, ...) (0x64d0e0) and SErrDisplayAppFatal2(code, fmt, ...) (0x64cf80)
both call 0x64cfa0(code, fmt, args), the first with the code 0x85100086. It takes the error
lock, collects the file and line recorded for this thread, formats the message into 2048 bytes
with _vsnprintf, hands the code, file, message and line to 0x64d100, which reports the error as
error <code & 0xffff>, 134 for the first, and then calls StormExitProcess(1): the process ends.
The recorded file and line are null and 0, since only the unreached setter 0x64e5c0 writes them.
A base archive that does not open reaches it from MountArchives (storm/mount), and so does any archive that fails with error 0x26, 0x8510006c or 0x85100083, through 0x64cf80.
The derivation is in the doc.
Callers 2
- SErrDisplayAppFatalV storm
- 0x64de00 storm
Callees 2
- 0x64d100 storm
- __vsnprintf crt
Calls and jumps by a bare address, from tables/calls.tsv.