File: work-around-64bit-big-endian-checksum-failure.patch

package info (click to toggle)
libesedb 20240420-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,892 kB
  • sloc: ansic: 264,937; sh: 6,589; makefile: 1,785; cpp: 385; python: 363; sed: 16
file content (24 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Hilko Bengen <bengen@debian.org>
Date: Sun, 27 Jan 2019 04:35:17 +0100
Subject: work around 64bit big-endian checksum failure

---
 libesedb/libesedb_checksum.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libesedb/libesedb_checksum.c b/libesedb/libesedb_checksum.c
index 34fe0cf..e7fcff7 100644
--- a/libesedb/libesedb_checksum.c
+++ b/libesedb/libesedb_checksum.c
@@ -29,7 +29,11 @@
 /* The largest primary (or scalar) available
  * supported by a single load and store instruction
  */
+#if defined(__s390__) || defined(__sparc_v9__)
+typedef uint32_t libesedb_aligned_t;
+#else
 typedef unsigned long int libesedb_aligned_t;
+#endif
 
 /* The ECC-32 mask lookup table
  */