[Bug 202507] usr/src/tests/sys/aio/lio_kqueue_test.c:82: buffer too small ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Aug 20 06:31:34 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202507
Bug ID: 202507
Summary: usr/src/tests/sys/aio/lio_kqueue_test.c:82: buffer too
small ?
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
[usr/src/tests/sys/aio/lio_kqueue_test.c:82]: (error) Buffer is accessed out of
bounds: pathname
Source code is
strcpy(pathname, PATH_TEMPLATE);
but
char *file, pathname[sizeof(PATH_TEMPLATE)-1];
Maybe better code
char *file, pathname[sizeof(PATH_TEMPLATE) + 1];
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list