Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 557562 Details for
Bug 671558
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=]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rkt-1.30.0-fix-lkvm-resolve-program-snprintf.patch
rkt-1.30.0-fix-lkvm-resolve-program-snprintf.patch (text/plain), 779 bytes, created by
Dennis Schridde
on 2018-12-11 10:17:15 UTC
(
hide
)
Description:
rkt-1.30.0-fix-lkvm-resolve-program-snprintf.patch
Filename:
MIME Type:
Creator:
Dennis Schridde
Created:
2018-12-11 10:17:15 UTC
Size:
779 bytes
patch
obsolete
>See-Also: https://bugs.gentoo.org/671558 >Signed-Off-By: Dennis Schridde <devurandom@gmx.net> >--- kvmtool/builtin-run.c.orig 2018-12-11 10:58:16.143353938 +0100 >+++ kvmtool/builtin-run.c 2018-12-11 11:00:35.216479432 +0100 >@@ -48,6 +48,7 @@ > #include <unistd.h> > #include <ctype.h> > #include <stdio.h> >+#include <assert.h> > > #define MB_SHIFT (20) > #define KB_SHIFT (10) >@@ -404,11 +405,12 @@ > err = stat(src, &st); > > if (!err && S_ISREG(st.st_mode)) { >- char resolved_path[PATH_MAX]; >+ char resolved_path[PATH_MAX-5]; // PATH_MAX - strlen("/host") > > if (!realpath(src, resolved_path)) > die("Unable to resolve program %s: %s\n", src, strerror(errno)); > >+ assert(len <= PATH_MAX); > snprintf(dst, len, "/host%s", resolved_path); > } else > strncpy(dst, src, len);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 671558
:
555786
| 557562 |
557564