Send inn-workers mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."
Today's Topics:
1. [PATCH] fix snprintf return value misuse (and some related
off-by-1/etc) (Yuriy M. Kaminskiy)
----------------------------------------------------------------------
Message: 1
Date: Sun, 14 Feb 2016 01:04:09 +0300
From: "Yuriy M. Kaminskiy" <[email protected]>
To: [email protected]
Subject: [PATCH] fix snprintf return value misuse (and some related
off-by-1/etc)
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
snprintf() return -1 on error, and *value larger than supplied buffer
size* if formatted string will not fit in supplied buffer.
If you add/subtract snprintf() return value without validating its
range, this will lead up to disaster.
As I don't use inn, patch is compile-tested only, passes `make check`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inn2-fix-snprintf-misuse.patch
Type: text/x-patch
Size: 9749 bytes
Desc: not available
URL:
<https://lists.isc.org/pipermail/inn-workers/attachments/20160214/0e2b6633/attachment-0001.bin>
------------------------------
_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers
End of inn-workers Digest, Vol 81, Issue 2
******************************************