307d0ef2ba
- Fix DoS in virtiofsd, where a FUSE client could exhaust the number of available open files on the host (CVE-2020-10717 bsc#1171110) virtiofsd-add-rlimit-nofile-NUM-option.patch virtiofsd-stay-below-fs.file-max-sysctl-.patch - Add more fixes for gcc10 compatibility: Use NO_WERROR=1 when building ipxe sources, at least until we get gcc10 compatibility figured out. Also add patch for explicitly using -fcommon (boo#1171140) Be-explicit-about-fcommon-compiler-direc.patch and fix for tighter enum compatibility checking (boo#1171139) add-enum-cast-to-avoid-gcc10-warning.patch and a work around for what seems to be a compiler regression (boo#1171123) work-around-gcc10-problem-with-zero-leng.patch OBS-URL: https://build.opensuse.org/request/show/800526 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=549
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From: Bruce Rogers <brogers@suse.com>
|
|
Date: Tue, 5 May 2020 13:26:33 -0600
|
|
Subject: work around gcc10 problem with zero-length array
|
|
|
|
References: boo#1171123
|
|
|
|
gcc10 has introduced a regression in handling zero-length array under
|
|
certain cirumstances. For now simply work around it by extending the
|
|
array to have 1 member. I've audited the code to ensure that will still
|
|
work right.
|
|
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94940
|
|
|
|
Signed-off-by: Bruce Rogers <brogers@suse.com>
|
|
---
|
|
src/drivers/net/intelvf.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/roms/ipxe/src/drivers/net/intelvf.h b/roms/ipxe/src/drivers/net/intelvf.h
|
|
index ab404698fe6de9f48370931fdf56..abc2cd254bd44f4b2168e1ecee54 100644
|
|
--- a/roms/ipxe/src/drivers/net/intelvf.h
|
|
+++ b/roms/ipxe/src/drivers/net/intelvf.h
|
|
@@ -132,7 +132,7 @@ union intelvf_msg {
|
|
/** Queue configuration message */
|
|
struct intelvf_msg_queues queues;
|
|
/** Raw dwords */
|
|
- uint32_t dword[0];
|
|
+ uint32_t dword[1];
|
|
};
|
|
|
|
/** Maximum time to wait for mailbox message
|