Bug 201287 - tools/tools/nxge/xge_info.c: 2 * three into two won't go
Summary: tools/tools/nxge/xge_info.c: 2 * three into two won't go
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 16:28 UTC by David Binderman
Modified: 2018-05-09 00:41 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-07-02 16:28:56 UTC
1.

tools/tools/nxge/xge_info.c:399]: (error) Buffer is accessed out of bounds: register_info.option

  strcpy(register_info->option, "-r");

strcpy copies 3 bytes, but field option is only two bytes.

2.

tools/tools/nxge/xge_info.c:440]: (error) Buffer is accessed out of bounds: register_info.option

Duplicate with -w.
Comment 1 Kevin Bowling freebsd_committer freebsd_triage 2018-05-09 00:41:18 UTC
nxge(4) removed in HEAD