diff options
| author | Stefan Monnier | 2023-05-09 22:30:52 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-05-09 22:30:52 -0400 |
| commit | 93005cd9dc2bab882e66ac7b81f593cd6c021e43 (patch) | |
| tree | 9e8e6e74b2e89db33921957ab8cc27e96cba05c3 /src/alloc.c | |
| parent | 6924c81a6d223e62465a8c584c6b0d777afa354b (diff) | |
| download | emacs-93005cd9dc2bab882e66ac7b81f593cd6c021e43.tar.gz emacs-93005cd9dc2bab882e66ac7b81f593cd6c021e43.zip | |
with-display-message: Workaround for bug#63253
Running arbitrary ELisp code from an atimer is still dangerous,
at least because the regexp engine is not-reentrant, so let's patch up
the case we bumped into. There are probably many other such holes :-(
* src/alloc.c (garbage_collection_inhibited): Make it non-static.
* src/xdisp.c (garbage_collection_inhibited): Declare it.
(set_message, clear_message): Use it as a proxy for "we're in
a dangerous context like within `probably_quit`".
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 05a19f0b7e9..7ff2cd3b100 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -367,7 +367,7 @@ static ptrdiff_t pure_bytes_used_non_lisp; | |||
| 367 | 367 | ||
| 368 | /* If positive, garbage collection is inhibited. Otherwise, zero. */ | 368 | /* If positive, garbage collection is inhibited. Otherwise, zero. */ |
| 369 | 369 | ||
| 370 | static intptr_t garbage_collection_inhibited; | 370 | intptr_t garbage_collection_inhibited; |
| 371 | 371 | ||
| 372 | /* The GC threshold in bytes, the last time it was calculated | 372 | /* The GC threshold in bytes, the last time it was calculated |
| 373 | from gc-cons-threshold and gc-cons-percentage. */ | 373 | from gc-cons-threshold and gc-cons-percentage. */ |