This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/16013] New: gdb-7.6.1/gdb/common/linux-osdata.c: 5 * off by one error ?
- From: "dcb314 at hotmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 08 Oct 2013 07:44:28 +0000
- Subject: [Bug gdb/16013] New: gdb-7.6.1/gdb/common/linux-osdata.c: 5 * off by one error ?
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16013
Bug ID: 16013
Summary: gdb-7.6.1/gdb/common/linux-osdata.c: 5 * off by one
error ?
Product: gdb
Version: 7.6
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: dcb314 at hotmail dot com
I just ran the static analysis tool cppcheck over the
source code of gdb-7.6.1
It said
[gdb-7.6.1/gdb/common/linux-osdata.c:139]: (error) Width 32 given in format
string (no. 2) is larger than destination buffer 'cmd[32]', use %31s to prevent
overflowing it.
[gdb-7.6.1/gdb/common/linux-osdata.c:881]: (error) Width 512 given in format
string (no. 15) is larger than destination buffer 'extra[512]', use %511s to
prevent overflowing it.
[gdb-7.6.1/gdb/common/linux-osdata.c:1472]: (error) Width 64 given in format
string (no. 1) is larger than destination buffer 'name[64]', use %63s to
prevent overflowing it.
[gdb-7.6.1/gdb/common/linux-osdata.c:1472]: (error) Width 256 given in format
string (no. 4) is larger than destination buffer 'dependencies[256]', use %255s
to prevent overflowing it.
[gdb-7.6.1/gdb/common/linux-osdata.c:1472]: (error) Width 16 given in format
string (no. 5) is larger than destination buffer 'status[16]', use %15s to
prevent overflowing it.
--
You are receiving this mail because:
You are on the CC list for the bug.