diff options
author | Luis de Bethencourt <luis.bg@samsung.com> | 2015-03-12 13:50:33 +0000 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-03-12 13:50:37 +0000 |
commit | 3bf09e06cfd797c2dd65c3b7b3ee8ac2fb9dab24 (patch) | |
tree | 39d74f923a7bc60de3efeae40fcf10d65fd846ec /orc-test | |
parent | 8bc018cbbe25521f91ecba0fc98185d2eaac650d (diff) | |
download | orc-3bf09e06cfd797c2dd65c3b7b3ee8ac2fb9dab24.tar.gz |
test: protect against out-of-bounds
Same as commit 8bc018cbbe25521f91ecba0fc98185d2eaac650d
CID #1146994
CID #1146995
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/orctest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 557c008..975788e 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -859,7 +859,7 @@ orc_test_get_program_for_opcode_const (OrcStaticOpcode *opcode) { OrcProgram *p; char s[40]; - int args[4] = { -1, -1, -1, -1 }; + int args[5] = { -1, -1, -1, -1, -1 }; int flags ORC_GNUC_UNUSED; int n_args = 0; @@ -908,7 +908,7 @@ orc_test_get_program_for_opcode_param (OrcStaticOpcode *opcode) { OrcProgram *p; char s[40]; - int args[4] = { -1, -1, -1, -1 }; + int args[5] = { -1, -1, -1, -1, -1 }; int flags ORC_GNUC_UNUSED; int n_args = 0; |