Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: FAXLIB examples: bug report

$
0
0

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().


Viewing all articles
Browse latest Browse all 25965


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>