Commit 9da43ddc authored by Stefan Monnier's avatar Stefan Monnier
Browse files

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

relocated from under us.
parent 587fd086
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
......
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment