diff options
author | Erich Eckner <git@eckner.net> | 2019-01-21 10:09:17 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-21 10:09:17 +0100 |
commit | 35350ce1f7aba9843ea7218dee89ae30a1fe3f5e (patch) | |
tree | 7e95d77e100fee2080f754ec7e0846a46af5eaf7 /core/systemd/lz4-test-compress-partial.patch | |
parent | 149f379709d64b238fa46b48a3ef88816f1bc8a1 (diff) | |
parent | d2b638674f3c14e77568c33672da0e13cf0d7cf9 (diff) | |
download | packages-35350ce1f7aba9843ea7218dee89ae30a1fe3f5e.tar.xz |
Merge branch 'master' into i486
Diffstat (limited to 'core/systemd/lz4-test-compress-partial.patch')
-rw-r--r-- | core/systemd/lz4-test-compress-partial.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/core/systemd/lz4-test-compress-partial.patch b/core/systemd/lz4-test-compress-partial.patch new file mode 100644 index 00000000..421e186f --- /dev/null +++ b/core/systemd/lz4-test-compress-partial.patch @@ -0,0 +1,31 @@ +diff --git a/meson.build b/meson.build +index 554e67e5dd..3636a0ff8c 100644 +--- a/meson.build ++++ b/meson.build +@@ -1084,6 +1084,7 @@ conf.set10('HAVE_XZ', have) + want_lz4 = get_option('lz4') + if want_lz4 != 'false' and not fuzzer_build + liblz4 = dependency('liblz4', ++ version : '>= 1.8.3', + required : want_lz4 == 'true') + have = liblz4.found() + else +diff --git a/src/journal/test-compress.c b/src/journal/test-compress.c +index 7addf318d6..fb0db190b2 100644 +--- a/src/journal/test-compress.c ++++ b/src/journal/test-compress.c +@@ -227,13 +227,10 @@ static void test_lz4_decompress_partial(void) { + assert_se(r >= 0); + log_info("Decompressed partial %i/%i → %i", 12, HUGE_SIZE, r); + +- /* We expect this to fail, because that's how current lz4 works. If this +- * call succeeds, then lz4 has been fixed, and we need to change our code. +- */ + r = LZ4_decompress_safe_partial(buf, huge, + compressed, + 12, HUGE_SIZE-1); +- assert_se(r < 0); ++ assert_se(r >= 0); + log_info("Decompressed partial %i/%i → %i", 12, HUGE_SIZE-1, r); + } + #endif |