You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The string being appended, h: , is three characters long—not two.
In practice this may be a non-issue, because the next line allows an arbitrary +79 slop factor which doesn't seem to correspond to any real limit.
/* The 'reason' is an arbitrary message, allow +79 maximum 195 */
The text was updated successfully, but these errors were encountered:
That's why I wrote safecat; people do this all the time. I.e. update a message and don't increase the length of the corresponding buffer or do the addition wrong. It's safe because this is precisely what safecat checks for (it will never overwrite the buffer).
In this case the comment error was in the original code (871b1d). The comment should be fixed some time; remarkable that so much copy editing was done including changes to the comment but one one until now noticed the words in the comment were wrong!
Noticed a strange/misleading comment in png.c.
pos = png_safecat(message, (sizeof message), pos, "h: "); /* +2 = 116 */
The string being appended,
h:
, is three characters long—not two.In practice this may be a non-issue, because the next line allows an arbitrary +79 slop factor which doesn't seem to correspond to any real limit.
/* The 'reason' is an arbitrary message, allow +79 maximum 195 */
The text was updated successfully, but these errors were encountered: