projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bc018c
)
test: protect against out-of-bounds
author
Luis de Bethencourt
<luis.bg@samsung.com>
Thu, 12 Mar 2015 13:50:33 +0000
(13:50 +0000)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Thu, 12 Mar 2015 13:50:37 +0000
(13:50 +0000)
Same as commit
8bc018cbbe25521f91ecba0fc98185d2eaac650d
CID #1146994
CID #1146995
orc-test/orctest.c
patch
|
blob
|
history
diff --git
a/orc-test/orctest.c
b/orc-test/orctest.c
index
557c008
..
975788e
100644
(file)
--- 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;