diff options
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r-- | src/ir/effects.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h index 58480f0ff..43d4868d8 100644 --- a/src/ir/effects.h +++ b/src/ir/effects.h @@ -732,7 +732,10 @@ private: // we keep the code here simpler, but it does mean another optimization // cycle may be needed in some cases. } - void visitStringNew(StringNew* curr) {} + void visitStringNew(StringNew* curr) { + // traps when out of bounds in linear memory or ref is null + parent.implicitTrap = true; + } void visitStringConst(StringConst* curr) {} void visitStringMeasure(StringMeasure* curr) { // traps when ref is null. |