Hello,
I've found few bugs in FAXLIB examples code:
- multiple (faxsim.c, fiusim.c, fmsim.c) NULL pointer dereferences and assigning enum to string, general pattern:
char *str = NULL;
result = fmGetSizes (&fmNbufs, &bufs);
if (!(result == fm_NOERR))
{
*str = SIU_EXCEPTION_FM_SIZES_ERR; ///< NULL dererefence + assigning enum to string 1st byte
siuFatalError (SIU_FM_ID, str);
}
- extra arguments in printf() calls inside fiuDebugGetFRF11PacketType(), fiuDebugGetAAL2PacketType().