* src/bytecode.c (FETCH) [BYTE_CODE_SAFE]: Check the bytecode wasn't

relocated from under us.
This commit is contained in:
Stefan Monnier 2014-05-27 19:48:35 -04:00
parent 587fd086a0
commit 9da43ddc9d
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2014-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
* bytecode.c (FETCH) [BYTE_CODE_SAFE]: Check the bytecode wasn't
relocated from under us.
2014-05-27 Fabrice Popineau <fabrice.popineau@gmail.com>
* Makefile.in (C_HEAP_SWITCH): Get the predefined heap size from

View file

@ -388,7 +388,11 @@ unmark_byte_stack (void)
/* Fetch the next byte from the bytecode stream. */
#ifdef BYTE_CODE_SAFE
#define FETCH (eassert (stack.byte_string_start == SDATA (stack.byte_string)), *stack.pc++)
#else
#define FETCH *stack.pc++
#endif
/* Fetch two bytes from the bytecode stream and make a 16-bit number
out of them. */