[gnome-builder] jsonrpc: protect against pushing past the stack size
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] jsonrpc: protect against pushing past the stack size
- Date: Mon, 7 Nov 2016 11:27:34 +0000 (UTC)
commit 27edead176504234e2abdb182f5b0609106a722b
Author: Sebastien Lafargue <slafargue gnome org>
Date: Mon Nov 7 12:00:31 2016 +0100
jsonrpc: protect against pushing past the stack size
contrib/jsonrpc-glib/jcon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/jsonrpc-glib/jcon.c b/contrib/jsonrpc-glib/jcon.c
index f771778..a9586e3 100644
--- a/contrib/jsonrpc-glib/jcon.c
+++ b/contrib/jsonrpc-glib/jcon.c
@@ -572,7 +572,7 @@ jcon_extract_va_list (JsonNode *node,
keys[0] = NULL;
indexes[0] = 0;
- while (node != NULL && sp >= 0 && sp < STACK_DEPTH)
+ while (node != NULL && sp >= 0 && sp < STACK_DEPTH - 1)
{
JconExtract val = { 0 };
JconType type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]