diff options
author | Zach van Rijn <me@zv.io> | 2024-06-13 13:51:45 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-07 10:08:22 -0500 |
commit | 773497f269dacea4df803a10bcf5d8167db70bc4 (patch) | |
tree | dd451f3fcad1ee13d72e17f70ea8149c07ac7d49 /user/gst-plugins-bad/fix-arm-parser-alignment.patch | |
parent | 9d42e3f8027576d895eadbeb6d22147917529eb0 (diff) | |
download | packages-773497f269dacea4df803a10bcf5d8167db70bc4.tar.gz packages-773497f269dacea4df803a10bcf5d8167db70bc4.tar.bz2 packages-773497f269dacea4df803a10bcf5d8167db70bc4.tar.xz packages-773497f269dacea4df803a10bcf5d8167db70bc4.zip |
user/gst-plugins-bad: add patch for 32-bit ARM
Closes: #1198
Diffstat (limited to 'user/gst-plugins-bad/fix-arm-parser-alignment.patch')
-rw-r--r-- | user/gst-plugins-bad/fix-arm-parser-alignment.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/user/gst-plugins-bad/fix-arm-parser-alignment.patch b/user/gst-plugins-bad/fix-arm-parser-alignment.patch new file mode 100644 index 000000000..63715380e --- /dev/null +++ b/user/gst-plugins-bad/fix-arm-parser-alignment.patch @@ -0,0 +1,32 @@ +This patch differs from upstream in the following way(s): + + * Paths changed to accommodate 'builddir' + +From 10930661ee8ab2f43078ece482c33ca74c2440fb Mon Sep 17 00:00:00 2001 +From: Zach van Rijn <me@zv.io> +Date: Thu, 13 Jun 2024 09:11:30 -0500 +Subject: [PATCH] pcapparse: Avoid unaligned memory access + +Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3602 +--- + subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c b/subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c +index 53e7ef6fc25..0a9c9a6063b 100644 +--- a/gst/pcapparse/gstpcapparse.c ++++ b/gst/pcapparse/gstpcapparse.c +@@ -456,8 +456,8 @@ gst_pcap_parse_scan_frame (GstPcapParse * self, + return FALSE; + + /* ip info */ +- ip_src_addr = *((guint32 *) (buf_ip + 12)); +- ip_dst_addr = *((guint32 *) (buf_ip + 16)); ++ memcpy(&ip_src_addr, buf_ip + 12, sizeof(ip_src_addr)); ++ memcpy(&ip_dst_addr, buf_ip + 16, sizeof(ip_dst_addr)); + buf_proto = buf_ip + ip_header_size; + ip_packet_len = GUINT16_FROM_BE (*(guint16 *) (buf_ip + 2)); + +-- +GitLab + |