projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d31abf
)
lz4: fix size check which had no chance of working on big-endian
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 2 Dec 2015 03:53:23 +0000
(22:53 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 2 Dec 2015 14:50:01 +0000
(09:50 -0500)
src/journal/compress.c
patch
|
blob
|
history
diff --git
a/src/journal/compress.c
b/src/journal/compress.c
index e1ca0a8818edd6cbc6394e2ac1e8735b58f366cb..1a3d2cdd800d59299faeafa223ba0169a3c2fd23 100644
(file)
--- a/
src/journal/compress.c
+++ b/
src/journal/compress.c
@@
-201,7
+201,7
@@
int decompress_blob_lz4(const void *src, uint64_t src_size,
return -EBADMSG;
size = le64toh( *(le64_t*)src );
- if (size < 0 || (
le64_t) size != *(le64_t*)src
)
+ if (size < 0 || (
unsigned) size != le64toh(*(le64_t*)src)
)
return -EFBIG;
if ((size_t) size > *dst_alloc_size) {
out = realloc(*dst, size);