diff options
| author | Paul Eggert | 2018-11-27 21:36:18 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-11-27 21:36:43 -0800 |
| commit | cef3f8fbf98296eaa59f80716db33b4f8689889a (patch) | |
| tree | 7123c933e890e0654a89aed0f114a6982a894671 /src/dbusbind.c | |
| parent | e02d375cb6670e2306b9c67d7f6fd2dd1d1b2711 (diff) | |
| download | emacs-cef3f8fbf98296eaa59f80716db33b4f8689889a.tar.gz emacs-cef3f8fbf98296eaa59f80716db33b4f8689889a.zip | |
Fix core dump in dbus-message-internal
* src/dbusbind.c (Fdbus_message_internal):
Don’t go past array end (Bug#33530).
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index 9bc344e9612..403fc598c09 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -1423,7 +1423,7 @@ usage: (dbus-message-internal &rest REST) */) | |||
| 1423 | for (; count < nargs; ++count) | 1423 | for (; count < nargs; ++count) |
| 1424 | { | 1424 | { |
| 1425 | dtype = XD_OBJECT_TO_DBUS_TYPE (args[count]); | 1425 | dtype = XD_OBJECT_TO_DBUS_TYPE (args[count]); |
| 1426 | if (XD_DBUS_TYPE_P (args[count])) | 1426 | if (count + 1 < nargs && XD_DBUS_TYPE_P (args[count])) |
| 1427 | { | 1427 | { |
| 1428 | XD_DEBUG_VALID_LISP_OBJECT_P (args[count]); | 1428 | XD_DEBUG_VALID_LISP_OBJECT_P (args[count]); |
| 1429 | XD_DEBUG_VALID_LISP_OBJECT_P (args[count+1]); | 1429 | XD_DEBUG_VALID_LISP_OBJECT_P (args[count+1]); |