diff options
| author | Stefan Monnier | 2014-05-27 19:48:35 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-05-27 19:48:35 -0400 |
| commit | 9da43ddc9d3e5031d43bf0f5e73ec60b42af2461 (patch) | |
| tree | 9709cee8741e9b0eafaf0fc9fe172cc9d5f7dd55 /src/bytecode.c | |
| parent | 587fd086a045f715932f886ecf31015932464ce6 (diff) | |
| download | emacs-9da43ddc9d3e5031d43bf0f5e73ec60b42af2461.tar.gz emacs-9da43ddc9d3e5031d43bf0f5e73ec60b42af2461.zip | |
* src/bytecode.c (FETCH) [BYTE_CODE_SAFE]: Check the bytecode wasn't
relocated from under us.
Diffstat (limited to 'src/bytecode.c')
| -rw-r--r-- | src/bytecode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index f489c74a144..ca6681f21e9 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -388,7 +388,11 @@ unmark_byte_stack (void) | |||
| 388 | 388 | ||
| 389 | /* Fetch the next byte from the bytecode stream. */ | 389 | /* Fetch the next byte from the bytecode stream. */ |
| 390 | 390 | ||
| 391 | #ifdef BYTE_CODE_SAFE | ||
| 392 | #define FETCH (eassert (stack.byte_string_start == SDATA (stack.byte_string)), *stack.pc++) | ||
| 393 | #else | ||
| 391 | #define FETCH *stack.pc++ | 394 | #define FETCH *stack.pc++ |
| 395 | #endif | ||
| 392 | 396 | ||
| 393 | /* Fetch two bytes from the bytecode stream and make a 16-bit number | 397 | /* Fetch two bytes from the bytecode stream and make a 16-bit number |
| 394 | out of them. */ | 398 | out of them. */ |