summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/atof.c
diff options
context:
space:
mode:
authorsyrinx <syrinx@FreeBSD.org>2006-12-09 20:58:26 +0000
committersyrinx <syrinx@FreeBSD.org>2006-12-09 20:58:26 +0000
commita7250df1fb8c1804c31ff9d28e758a4e6f05c5a7 (patch)
tree38850d39924121a7a822ede2208a47aaf4351138 /lib/libc/stdlib/atof.c
parent0e28b7e9fc7bbc9e326d94e48d0e1c7bd2358f99 (diff)
downloadFreeBSD-src-a7250df1fb8c1804c31ff9d28e758a4e6f05c5a7.zip
FreeBSD-src-a7250df1fb8c1804c31ff9d28e758a4e6f05c5a7.tar.gz
Instead of explicitly initializing variables to avoid compiler warnings,
add a default case to handle the situation when the variables are not initialized. Furthermore, abort() if the snmp agent passes an invalid option to the bridge module. As the option (SET, GET, GETNEXT, COMMIT, ROLLBACK) is determined by the snmp agent based on the operation requested by user, this behaviour is unlikely to be abused as a source for a DoS, but if ever hit will likely reveal a problem in the snmp agent or bridge module. Approved by: bz (mentor)
Diffstat (limited to 'lib/libc/stdlib/atof.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud