[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:
Benoît Minisini 2011-01-09 00:28:49 +00:00
parent e30aee9dbe
commit eb6f0cbb79

View file

@ -244,6 +244,7 @@ void SUBR_ptr(ushort code)
ptr = SUBR_get_pointer_or_string(PARAM);
CHECK_enter();
if (setjmp(CHECK_jump) == 0)
VALUE_read(RETURN, ptr, code & 0xF);
CHECK_leave();