diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-07 08:48:51 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-07 08:48:51 +0000 |
commit | 24fad30b6ac3bd4dfb04fa11252aa63b65ede0c0 (patch) | |
tree | c789b5814e35a5d7342ce2e20901e0667d88ae65 /contrib/netbsd-tests/lib/libc/string/t_strpbrk.c | |
parent | 989bc8448d049ce082397bd94cd548bbbca70af6 (diff) | |
download | FreeBSD-src-24fad30b6ac3bd4dfb04fa11252aa63b65ede0c0.zip FreeBSD-src-24fad30b6ac3bd4dfb04fa11252aa63b65ede0c0.tar.gz |
MFC r310957,r310958,r310960:
r310957:
Use strlcpy when copying `com` to pdu->community to avoid potential
buffer overruns
CID: 1006823, 1006824
r310958:
Initialize ret to SNMPD_INPUT_OK at the top of snmp_input_start(..) to
avoid returning an uninitialized value
There are some really complicated, snakey if-statements combined with
switch statements that could result in an invalid value being returned
as `ret`
CID: 1006551
r310960:
Similar to r310954, set .len to 0 on malloc failure and to `len` only
on success
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/string/t_strpbrk.c')
0 files changed, 0 insertions, 0 deletions