e977df4f00
Resolves: RHEL-19215,RHEL-32494,RHEL-5877
42 lines
1.6 KiB
Diff
42 lines
1.6 KiB
Diff
From b63440ad69581bad39a2eda7ab449f8a3f901c4e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Date: Sat, 11 Aug 2018 11:43:09 +0200
|
|
Subject: [PATCH] bus-message: return -EBADMSG not -EINVAL on invalid !gvariant
|
|
messages
|
|
|
|
(cherry picked from commit d831fb6f2bde829f9309aea242f502587662d1cc)
|
|
|
|
Resolves: #1696224
|
|
---
|
|
src/libsystemd/sd-bus/bus-message.c | 2 +-
|
|
...crash-4162a61a79e4c5a832ca5232212f75fa560a1f75 | Bin 0 -> 534 bytes
|
|
2 files changed, 1 insertion(+), 1 deletion(-)
|
|
create mode 100644 test/fuzz/fuzz-bus-message/crash-4162a61a79e4c5a832ca5232212f75fa560a1f75
|
|
|
|
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
|
|
index e71d29f91d..613722a1a0 100644
|
|
--- a/src/libsystemd/sd-bus/bus-message.c
|
|
+++ b/src/libsystemd/sd-bus/bus-message.c
|
|
@@ -5047,7 +5047,7 @@ static int message_skip_fields(
|
|
|
|
*signature += l;
|
|
} else
|
|
- return -EINVAL;
|
|
+ return -EBADMSG;
|
|
}
|
|
}
|
|
|
|
diff --git a/test/fuzz/fuzz-bus-message/crash-4162a61a79e4c5a832ca5232212f75fa560a1f75 b/test/fuzz/fuzz-bus-message/crash-4162a61a79e4c5a832ca5232212f75fa560a1f75
|
|
new file mode 100644
|
|
index 0000000000000000000000000000000000000000..5faf3308e7ac9c14d66422169e74ba8c05ad7319
|
|
GIT binary patch
|
|
literal 534
|
|
zcmd6ku?oU46h+UoDhf`1fCw&jsp1#7Ik@->DcVvfrZh#J#KqBnmZV7$7gz6+mv?!&
|
|
z_r8>Z+y(L}JOL4n04rKVV(0^h;#ApAPYe?v(>hgka#iI~+kPS!#wJzEriqR5!xnpp
|
|
zfC|>MWu~=`Ej0qv+%$D@&clT5&44k`GV@p9{C%<cQW|!CK;1eKr<<yp0T7JZES1ml
|
|
o;mdn=FS(o_oGt&+v-joBpD|VC)}XQ`b^8s&D_aCScH8#v-+dcTo&W#<
|
|
|
|
literal 0
|
|
HcmV?d00001
|
|
|