[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,6 +244,7 @@ void SUBR_ptr(ushort code)
|
||||||
ptr = SUBR_get_pointer_or_string(PARAM);
|
ptr = SUBR_get_pointer_or_string(PARAM);
|
||||||
|
|
||||||
CHECK_enter();
|
CHECK_enter();
|
||||||
|
if (setjmp(CHECK_jump) == 0)
|
||||||
VALUE_read(RETURN, ptr, code & 0xF);
|
VALUE_read(RETURN, ptr, code & 0xF);
|
||||||
CHECK_leave();
|
CHECK_leave();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue