Summary: | app-emulation/rkt-1.30.0 - builtin-run.c:412:28: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Werror=format-truncation=] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | Current packages | Assignee: | Zac Medico <zmedico> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | jerzy |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/rkt/rkt/issues/3966 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
rkt-1.30.0-fix-lkvm-resolve-program-snprintf.patch build.log (after patch) |
Description
Dennis Schridde
2018-11-20 09:56:39 UTC
Created attachment 557562 [details, diff]
rkt-1.30.0-fix-lkvm-resolve-program-snprintf.patch
Created attachment 557564 [details]
build.log (after patch)
Next problem right ahead:
virtio/net.c: In function ‘virtio_net__tap_init’:
virtio/net.c:365:47: error: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
strncpy(ifr.ifr_name, ndev->tap_name, sizeof(ndev->tap_name));
^
virtio/net.c:377:47: error: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
strncpy(ifr.ifr_name, ndev->tap_name, sizeof(ndev->tap_name));
^
cc1: all warnings being treated as errors
(In reply to Dennis Schridde from comment #1) > Created attachment 557562 [details, diff] [details, diff] > rkt-1.30.0-fix-lkvm-resolve-program-snprintf.patch Please send a pull request to https://github.com/rkt/rkt/pulls. (In reply to Zac Medico from comment #3) > (In reply to Dennis Schridde from comment #1) > > Created attachment 557562 [details, diff] [details, diff] [details, diff] > > rkt-1.30.0-fix-lkvm-resolve-program-snprintf.patch > > Please send a pull request to https://github.com/rkt/rkt/pulls. I created an issue for now, until the build failures are properly fixed: https://github.com/rkt/rkt/issues/3966 In bug #675344 a similar issue is fixed by removing -Werror from CFLAGS. Masked for removal: bug 687100 |