* src/lread.c (readchar): Don't read from a dead buffer. (Bug#14280)
This commit is contained in:
parent
54c57cc6c7
commit
15acfe419f
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-05-07 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* lread.c (readchar): Don't read from a dead buffer. (Bug#14280)
|
||||
|
||||
2013-05-07 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* xfns.c: Move misplaced ifndef USE_GTK from previous checkin.
|
||||
|
|
|
@ -201,6 +201,9 @@ readchar (Lisp_Object readcharfun, bool *multibyte)
|
|||
|
||||
ptrdiff_t pt_byte = BUF_PT_BYTE (inbuffer);
|
||||
|
||||
if (! BUFFER_LIVE_P (inbuffer))
|
||||
return -1;
|
||||
|
||||
if (pt_byte >= BUF_ZV_BYTE (inbuffer))
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue