summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-03-12 13:43:43 +0000
committerLuis de Bethencourt <luis.bg@samsung.com>2015-03-12 13:43:46 +0000
commit8bc018cbbe25521f91ecba0fc98185d2eaac650d (patch)
treeb60bb0da81f57a9a89266682a09d62ec2a3febec
parentc2beab87aacb6cdb3f27d0a64b526c78b2507d09 (diff)
test: protect against going out of bounds
Conditions should never happen but protect against going out of bounds in the args array. CID #1146993
-rw-r--r--orc-test/orctest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c
index ef4e6ed..557c008 100644
--- a/orc-test/orctest.c
+++ b/orc-test/orctest.c
@@ -804,7 +804,7 @@ orc_test_get_program_for_opcode (OrcStaticOpcode *opcode)
OrcProgram *p;
char s[40];
int flags ORC_GNUC_UNUSED = 0;
- int args[4] = { -1, -1, -1, -1 };
+ int args[5] = { -1, -1, -1, -1, -1 };
int n_args = 0;
p = orc_program_new ();