[INTERPRETER]
* BUG: Raise an error instead of crashing now when reading memory at a forbidden address with a <type>@() function. git-svn-id: svn://localhost/gambas/trunk@3451 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
e30aee9dbe
commit
eb6f0cbb79
1 changed files with 2 additions and 1 deletions
|
@ -244,7 +244,8 @@ void SUBR_ptr(ushort code)
|
|||
ptr = SUBR_get_pointer_or_string(PARAM);
|
||||
|
||||
CHECK_enter();
|
||||
VALUE_read(RETURN, ptr, code & 0xF);
|
||||
if (setjmp(CHECK_jump) == 0)
|
||||
VALUE_read(RETURN, ptr, code & 0xF);
|
||||
CHECK_leave();
|
||||
|
||||
if (CHECK_got_error())
|
||||
|
|
Loading…
Reference in a new issue