Bug 202299

Summary: usr/src/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c:1085: attempt to free() stack object
Product: Base System Reporter: David Binderman <dcb314>
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: avos
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description David Binderman 2015-08-13 16:56:09 UTC
[usr/src/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c:1085]: (error) Deallocation of an auto-variable results in undefined behaviour.

Source code is

    free(string);

but

    char string[MAXSTR], *endptr;
Comment 1 Andriy Voskoboinyk freebsd_committer 2019-02-07 14:20:50 UTC
Fixed in base r298452.