Menu

#2 Replace hard-coded values with sizeof()

closed-accepted
None
5
2003-06-25
2003-06-17
Tom Collins
No

This is a cleanup patch, resulting from a quick pass I made
through the source looking for calls to snprintf, GetValue,
memset, fgets, strncmp and strncpy.

I found many instances where a hard-coded value (or even
a reference to MAX_BUFF) could be replaced by a safer
sizeof().

I also noticed some areas where there was a discrepancy
between the assumed size of a character array and its
actual size.

Please review the patch and let me know if you find any
errors in it. It touches a lot of the code, but I feel it's
necessary for making qmailadmin more robust/secure.

Discussion

  • Tom Collins

    Tom Collins - 2003-06-17

    the gzipped patch

     
  • Tom Collins

    Tom Collins - 2003-06-25
    • assigned_to: nobody --> tomcollins
    • status: open --> closed-accepted
     
  • Tom Collins

    Tom Collins - 2003-06-25

    Logged In: YES
    user_id=117662

    This patch has been rolled into the 1.0.22 release.

     

Log in to post a comment.