summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackingElement.pm
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-11-11 10:27:42 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-11-11 10:27:42 +0000
commit2bdf54bbc647d224f9e63b570bdf159d7310887f (patch)
treed67ee6320cf95d0a6b0cff3ce3ca8c0033e94d7f /usr.sbin/pkg_add/OpenBSD/PackingElement.pm
parent5edef8cb541b0474cfe683e527728ba62857d252 (diff)
Ensure all replies are at least 4 chars long. If only 3 chars were
received, append a space character. This enables other parts of the daemon to safely index into 4th character of the reply buffer without the risk of accessing one byte beyond NUL. ok gilles@
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackingElement.pm')
0 files changed, 0 insertions, 0 deletions