--- jit/bytecode-to-ir.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/jit/bytecode-to-ir.c b/jit/bytecode-to-ir.c index 0ad607e..19a0c29 100644 --- a/jit/bytecode-to-ir.c +++ b/jit/bytecode-to-ir.c @@ -371,6 +371,11 @@ static int do_convert_bb_to_ir(struct basic_block *bb) ctx.offset = ctx.buffer->pos; /* this is fragile */ ctx.opc = bytecode_read_u8(ctx.buffer); + if (ctx.opc >= ARRAY_SIZE(converters)) { + err = -EINVAL; + break; + } + convert = converters[ctx.opc]; if (!convert) { err = -EINVAL; -- 1.6.2.2 ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel