diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/journal-Add-missing-byte-order-conversions.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/journal-Add-missing-byte-order-conversions.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/meta/recipes-core/systemd/systemd/journal-Add-missing-byte-order-conversions.patch b/meta/recipes-core/systemd/systemd/journal-Add-missing-byte-order-conversions.patch deleted file mode 100644 index 21ea0f9502..0000000000 --- a/meta/recipes-core/systemd/systemd/journal-Add-missing-byte-order-conversions.patch +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | From 43539d6b60ef0db3e98d00bef0024614c8c1807a Mon Sep 17 00:00:00 2001 | ||
2 | From: George McCollister <george.mccollister@gmail.com> | ||
3 | Date: Tue, 31 Dec 2013 14:37:32 -0600 | ||
4 | Subject: [PATCH] journal: Add missing byte order conversions | ||
5 | |||
6 | Convert entry_array.items[0] to host byte order prior to passing it to | ||
7 | chain_cache_put(). | ||
8 | |||
9 | [zj: also use le64toh in journal-verify.c] | ||
10 | |||
11 | https://bugs.freedesktop.org/show_bug.cgi?id=73194 | ||
12 | |||
13 | Upstream-Status: Backport [Fedora] | ||
14 | --- | ||
15 | src/journal/journal-file.c | 4 ++-- | ||
16 | src/journal/journal-verify.c | 6 +++--- | ||
17 | 2 files changed, 5 insertions(+), 5 deletions(-) | ||
18 | |||
19 | Index: systemd-208/src/journal/journal-file.c | ||
20 | =================================================================== | ||
21 | --- systemd-208.orig/src/journal/journal-file.c 2014-02-07 22:51:44.000000000 -0800 | ||
22 | +++ systemd-208/src/journal/journal-file.c 2014-02-07 22:58:40.665062951 -0800 | ||
23 | @@ -1447,7 +1447,7 @@ | ||
24 | |||
25 | found: | ||
26 | /* Let's cache this item for the next invocation */ | ||
27 | - chain_cache_put(f->chain_cache, ci, first, a, o->entry_array.items[0], t); | ||
28 | + chain_cache_put(f->chain_cache, ci, first, a, le64toh(o->entry_array.items[0]), t); | ||
29 | |||
30 | r = journal_file_move_to_object(f, OBJECT_ENTRY, p, &o); | ||
31 | if (r < 0) | ||
32 | @@ -1624,7 +1624,7 @@ | ||
33 | return 0; | ||
34 | |||
35 | /* Let's cache this item for the next invocation */ | ||
36 | - chain_cache_put(f->chain_cache, ci, first, a, array->entry_array.items[0], t); | ||
37 | + chain_cache_put(f->chain_cache, ci, first, a, le64toh(array->entry_array.items[0]), t); | ||
38 | |||
39 | if (subtract_one && i == 0) | ||
40 | p = last_p; | ||
41 | Index: systemd-208/src/journal/journal-verify.c | ||
42 | =================================================================== | ||
43 | --- systemd-208.orig/src/journal/journal-verify.c 2013-08-13 13:02:46.000000000 -0700 | ||
44 | +++ systemd-208/src/journal/journal-verify.c 2014-02-07 22:57:14.849308409 -0800 | ||
45 | @@ -249,12 +249,12 @@ | ||
46 | } | ||
47 | |||
48 | for (i = 0; i < journal_file_entry_array_n_items(o); i++) | ||
49 | - if (o->entry_array.items[i] != 0 && | ||
50 | - !VALID64(o->entry_array.items[i])) { | ||
51 | + if (le64toh(o->entry_array.items[i]) != 0 && | ||
52 | + !VALID64(le64toh(o->entry_array.items[i]))) { | ||
53 | log_error(OFSfmt": invalid object entry array item (%"PRIu64"/%"PRIu64"): "OFSfmt, | ||
54 | offset, | ||
55 | i, journal_file_entry_array_n_items(o), | ||
56 | - o->entry_array.items[i]); | ||
57 | + le64toh(o->entry_array.items[i])); | ||
58 | return -EBADMSG; | ||
59 | } | ||
60 | |||