diff options
author | 2001-09-16 15:27:32 +0000 | |
---|---|---|
committer | 2001-09-16 15:27:32 +0000 | |
commit | 872c7e93a692140b914575b4b8aac0d284c31d0f (patch) | |
tree | dfd332b1d501f6ce6955d50b33f81df646df0e45 /lib | |
parent | partial documentation for the *_DEPENDS recent changes. (diff) | |
download | wireguard-openbsd-872c7e93a692140b914575b4b8aac0d284c31d0f.tar.xz wireguard-openbsd-872c7e93a692140b914575b4b8aac0d284c31d0f.zip |
1) In skin(), only add a space after a comma if there is actually a space
in the input buffer. This prevents a rare buffer overflow on very long
header lines where one or more entries has a comment in it but the
entries have no space after the comma *and* the amount of extra space
needed to add a space after each comma is greater than the length of
the comments that will be removed. This is debian bug #108677
2) In skin(), use a temporary variable in the realloc() and don't
die if realloc() fails since its only purpose is to shrink the
buffer, not expand it (and thus is not fatal).
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions