NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/47976: Overlapping variables in snprintf.
>Number: 47976
>Category: bin
>Synopsis: Overlapping variables in snprintf.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 30 10:45:00 +0000 2013
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Scanning sbin, usr.bin and usr.sbin with cppcheck I found 7 in errors.
[sbin/veriexecctl/veriexecctl.c:188]: (error) Undefined behavior: Variable 'fp'
is used as parameter and destination in s[n]printf().
[usr.bin/netstat/show.c:734]: (error) Undefined behavior: Variable 'obuf' is
used as parameter and destination in s[n]printf().
[usr.bin/tip/cu.c:163]: (error) Undefined behavior: Variable 'brbuf' is used as
parameter and destination in s[n]printf().
[usr.bin/tip/tip.c:106]: (error) Undefined behavior: Variable 'brbuf' is used
as parameter and destination in s[n]printf().
[usr.sbin/mopd/common/log.c:55]: (error) Undefined behavior: Variable 'buf' is
used as parameter and destination in s[n]printf().
[usr.sbin/mopd/common/log.c:72]: (error) Undefined behavior: Variable 'buf' is
used as parameter and destination in s[n]printf().
[usr.sbin/schedctl/schedctl.c:298]: (error) Undefined behavior: Variable 'buf'
is used as parameter and destination in s[n]printf().
>How-To-Repeat:
>Fix:
n/a
Home |
Main Index |
Thread Index |
Old Index