Bug 202299 - usr/src/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c:1085: attempt to free() stack object
Summary: usr/src/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c:1085: attempt to fre...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-13 16:56 UTC by David Binderman
Modified: 2019-02-07 14:20 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 2019-02-07 14:20:50 UTC
Fixed in base r298452.