Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699832 - sys-block/fio-3.16 - gclient.c: invalid strncpy() call on line 333
Summary: sys-block/fio-3.16 - gclient.c: invalid strncpy() call on line 333
Status: RESOLVED DUPLICATE of bug 699878
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-11-11 16:35 UTC by Helmut Jarausch
Modified: 2020-01-24 18:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2019-11-11 16:35:19 UTC
sys-block/fio-3.16 contains the strange line
strncpy(message, sizeof(message), "%s", status_message);
at gclient.c:333

This is an invalid invocation of strncpy and there is no private definition of that name either.
Comment 1 Helmut Jarausch 2019-11-11 17:44:02 UTC
This author has fixed this already in fio-git-20191107082503

Adding

	sed -i -e's/strncpy/snprintf/' gclient.c

to src-prepare applies this fix.
Comment 2 SpanKY gentoo-dev 2020-01-24 18:12:44 UTC
duping to newer bug as the issue was triaged & fixed there.
thanks for the report.

*** This bug has been marked as a duplicate of bug 699878 ***