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:
45ef23c
)
orcprogram-c: check array bound in get_varname_stride()
author
Luis de Bethencourt
<luisbg@osg.samsung.com>
Mon, 14 Dec 2015 16:20:18 +0000
(16:20 +0000)
committer
Luis de Bethencourt
<luisbg@osg.samsung.com>
Wed, 17 Feb 2016 15:56:25 +0000
(15:56 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=759840
orc/orcprogram-c.c
patch
|
blob
|
history
diff --git
a/orc/orcprogram-c.c
b/orc/orcprogram-c.c
index
bff075a
..
f5005bb
100644
(file)
--- a/
orc/orcprogram-c.c
+++ b/
orc/orcprogram-c.c
@@
-191,6
+191,9
@@
static void
get_varname_stride (char *s, OrcCompiler *compiler, int var)
{
if (compiler->target_flags & ORC_TARGET_C_NOEXEC) {
+ /* FIXME: correct varnames bound */
+ /* https://bugzilla.gnome.org/show_bug.cgi?id=759840 */
+ ORC_ASSERT (var < 48);
sprintf(s, "%s_stride", varnames[var]);
} else {
sprintf(s, "ex->params[%d]", var);