Menu

#1 Check return codes everywhere

open-postponed
None
2
2007-04-19
2007-02-20
No

Some checks for return codes are missing.

Examples:
Would you like to add more error handling for return values from "malloc" in functions like "DecodeTCP" and from "DecodeEthernet"?
http://hlbr.svn.sourceforge.net/viewvc/hlbr/trunk/hlbr/decoders/decode_ethernet.c?revision=111&view=markup
http://hlbr.svn.sourceforge.net/viewvc/hlbr/trunk/hlbr/decoders/decode_tcp.c?revision=111&view=markup

Discussion

  • André Bertelli Araújo

    • priority: 5 --> 2
    • status: open --> open-postponed
     
  • André Bertelli Araújo

    Logged In: YES
    user_id=1357472
    Originator: NO

    Lots of places in the code needs more checking... I've been adding some every time I see one missing check like this, but it would be nice to check all the code specifically for malloc/calloc's and add error handling for them.

     
  • Markus Elfring

    Markus Elfring - 2007-04-19
    • assigned_to: nobody --> arkanoid_
     

Log in to post a comment.