Menu

#14 Check return codes everywhere

version 0.5.0
open
None
5
2008-09-18
2008-07-03
No

Some checks for return codes are missing.

Examples:
Would you like to add more error handling for return values from "fread" like in the function "LoadImagePng" and from "fprintf" in the function "DecodeSchemeC40Text"?
http://libdmtx.svn.sourceforge.net/viewvc/libdmtx/util/dmtxread/dmtxread.c?revision=183&view=markup
http://libdmtx.svn.sourceforge.net/viewvc/libdmtx/dmtxdecode.c?revision=186&view=markup

Discussion

  • Mike Laughton

    Mike Laughton - 2008-09-18
    • assigned_to: nobody --> mblaughton
     
  • Markus Elfring

    Markus Elfring - 2008-09-19

    I suggest to avoid unchecked function calls.
    Would you like to detect every error situation as early as possible?

     
  • Mike Laughton

    Mike Laughton - 2008-09-19

    Hi Markus,

    Yes, I agree with you completely. Earlier today I noticed this bug was still unassigned so I assigned it to myself as a reminder.

    Thanks for the bug report,
    Mike

     

Log in to post a comment.