SHA256
1
0
forked from pool/vde2
Files
vde2/vde2-buffer-overflow.patch
Dirk Mueller 0903de4256 Accepting request 1187553 from home:jamborm:gcc14fixes
- Added vde2-C99.patch to avoid a C99 violation preventing the package
  to be built with GC 14.  [boo#1225950]

If the request is OK, please also forward it to Factory soon-ish so
that we can switch the default compiler.

OBS-URL: https://build.opensuse.org/request/show/1187553
OBS-URL: https://build.opensuse.org/package/show/Virtualization/vde2?expand=0&rev=20
2024-08-01 15:02:01 +00:00

14 lines
566 B
Diff

Index: vde2-2.3.2+svn587/src/vde_router/vder_packet.c
===================================================================
--- vde2-2.3.2+svn587.orig/src/vde_router/vder_packet.c
+++ vde2-2.3.2+svn587/src/vde_router/vder_packet.c
@@ -199,7 +199,7 @@ void vder_packet_recv(struct vder_iface
} else {
struct iphdr *hdr = iphead(packet);
uint32_t sender = hdr->saddr;
- uint8_t foot[sizeof(hdr) + 8];
+ uint8_t foot[sizeof(struct iphdr) + 8];
memcpy(foot, footprint(packet), sizeof(struct iphdr) + 8);
if (vder_ip_decrease_ttl(packet)) {