NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/50547: src/usr.sbin/sup/source/expand.c: 2 * possible bad size ?
>Number: 50547
>Category: bin
>Synopsis: src/usr.sbin/sup/source/expand.c: 2 * possible bad size ?
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 13 17:00:00 +0000 2015
>Originator: David Binderman
>Release: cvs dated 20151210
>Organization:
>Environment:
>Description:
[src/usr.sbin/sup/source/expand.c:136]: (warning) Size of pointer 'path' used instead of size of its data.
strncpy(path, path + 1, sizeof path - 1);
Similar thing a few lines later
[src/usr.sbin/sup/source/expand.c:138]: (warning) Size of pointer 'path' used instead of size of its data.
strncpy(path, (char *) getenv("HOME"), sizeof path - 1);
path[sizeof path - 1] = '\0';
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index