Ubuntu Pastebin

Paste from adconrad at Thu, 16 Nov 2017 17:29:06 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
--- moarvm-2017.06+dfsg/src/core/validation.c   2017-01-18 03:32:03.000000000 -0700
+++ moarvm-2017.10+dfsg/src/core/validation.c   2017-08-01 06:23:31.000000000 -0600
@@ -403,6 +403,15 @@
 
             break;
         }
+        case MVM_OP_wval:
+        case MVM_OP_wval_wide: {
+            validate_reg_operand(val, operands[0]);
+            if (GET_UI16(val->cur_op, 0) >= val->cu->body.num_scs)
+                fail(val, MSG(val, "out of range SC index %u"), GET_UI16(val->cur_op, 0));
+            validate_literal_operand(val, operands[1]);
+            validate_literal_operand(val, operands[2]);
+            break;
+        }
 
         default: {
             int i;
Download as text