Project

General

Profile

Actions

Bug #3002

closed

usr.sbin/mfiutil/mfi_foreign.c:189: buffer too small ?

Added by dcb about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/31/2017
Due date:
% Done:

0%

Estimated time:

Description

usr.sbin/mfiutil/mfi_foreign.c:189]: (error) Buffer is accessed out of bounds: prefix

Source code is

sprintf(prefix, "Foreign configuration preview %d", cfgidx);

but

char prefix[26];

I count at least 32 chars written by sprintf into prefix.
Suggest increase size of prefix.

I don't know which compiler this code is compiled by, but I
do know that recent version of gcc have a preprocessor
macro called _FORTIFY_SOURCE=2 which should detect this
kind of problem.

Actions #1

Updated by dillon about 7 years ago

  • Status changed from New to Closed

Fix committed by Matt

Actions

Also available in: Atom PDF