From 6c6e740c7a61bafd12514c744c4e65b2557b727f Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 25 Jun 2015 20:06:07 +0300 Subject: [PATCH] Fix check of run scope bounds in vm_loop. JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com --- jerry-core/vm/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/vm/vm.cpp b/jerry-core/vm/vm.cpp index 1ad36b3f4..801c6ae27 100644 --- a/jerry-core/vm/vm.cpp +++ b/jerry-core/vm/vm.cpp @@ -497,7 +497,7 @@ vm_loop (int_data_t *int_data_p, /**< interpreter context */ */ if (run_scope_p == NULL /* if no run scope set */ || (target >= run_scope_p->start_oc /* or target is within the current run scope */ - && target < run_scope_p->end_oc)) + && target <= run_scope_p->end_oc)) { int_data_p->pos = target;