[Bug 1090355] New: GCC 8: qemu build fails
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355 Bug ID: 1090355 Summary: GCC 8: qemu build fails Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: martin.liska@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- [ 1107s] In function 'process_section', [ 1107s] inlined from 'elf2pe.isra.4' at util/elf2efi.c:909:25: [ 1107s] util/elf2efi.c:494:2: error: 'strncpy' specified bound 8 equals destination size [-Werror=stringop-truncation] [ 1107s] strncpy ( ( char * ) new->hdr.Name, name, sizeof ( new->hdr.Name ) ); [ 1107s] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Seen here: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:G... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355
Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355#c1
Martin Liška
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355#c2
Bruce Rogers
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355#c3
--- Comment #3 from Bruce Rogers
For full safety we should also ensure the final element of the destination buffer be set to NUL. I'll add that as well in patch submitted to ipxe upstream.
And now that I examine the surrounding code, I see that the buffer is pre-zeroed anyways, so no need for this extra step to be added. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355#c6
--- Comment #6 from Bruce Rogers
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355#c7
Bruce Rogers
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355
http://bugzilla.opensuse.org/show_bug.cgi?id=1090355#c10
--- Comment #10 from OBSbugzilla Bot
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com