diff options
author | ngie <ngie@FreeBSD.org> | 2017-01-07 08:47:27 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2017-01-07 08:47:27 +0000 |
commit | e7482bc1d4714d175bbbf7b05a49997db377de97 (patch) | |
tree | 7fdfc50760ab55ce080f5e81debc703bdfa9ac6a /contrib/netbsd-tests/lib/libc/stdlib/t_random.c | |
parent | 2cb44498088056d38bb9e7c7ca5ae817b650d87d (diff) | |
download | FreeBSD-src-e7482bc1d4714d175bbbf7b05a49997db377de97.zip FreeBSD-src-e7482bc1d4714d175bbbf7b05a49997db377de97.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/stdlib/t_random.c')
0 files changed, 0 insertions, 0 deletions