diff options
| author | Dmitry Antipov | 2013-01-18 10:32:12 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-01-18 10:32:12 +0400 |
| commit | e07469fa51b2955391255f54917ffb34efd66f1f (patch) | |
| tree | c1d5d48ed06bb7c11b5ad1fc06229e92d1e50ada /src/ChangeLog | |
| parent | 6772211202c57f0dc96e5725f882a2fa4ee98d2d (diff) | |
| download | emacs-e07469fa51b2955391255f54917ffb34efd66f1f.tar.gz emacs-e07469fa51b2955391255f54917ffb34efd66f1f.zip | |
Fix crash when inserting data from non-regular files. See
http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00406.html
for the error description produced by valgrind.
* fileio.c (read_non_regular): Rename to read_contents.
Free Lisp_Save_Value object used to pass parameters.
(read_non_regular_quit): Rename to read_contents_quit.
(Finsert_file_contents): Redesign internal file reading loop to adjust
gap and end positions after each read and so help make_gap to work
properly. Do not signal an I/O error too early and so do not leave
not yet decoded characters in a buffer, which was the reason of
redisplay crash. Use list2 to build return value. Adjust comments.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f53b9a70e97..a7b8ab7855b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2013-01-18 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | Fix crash when inserting data from non-regular files. See | ||
| 4 | http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00406.html | ||
| 5 | for the error description produced by valgrind. | ||
| 6 | * fileio.c (read_non_regular): Rename to read_contents. | ||
| 7 | Free Lisp_Save_Value object used to pass parameters. | ||
| 8 | (read_non_regular_quit): Rename to read_contents_quit. | ||
| 9 | (Finsert_file_contents): Redesign internal file reading loop to adjust | ||
| 10 | gap and end positions after each read and so help make_gap to work | ||
| 11 | properly. Do not signal an I/O error too early and so do not leave | ||
| 12 | not yet decoded characters in a buffer, which was the reason of | ||
| 13 | redisplay crash. Use list2 to build return value. Adjust comments. | ||
| 14 | |||
| 1 | 2013-01-17 Paul Eggert <eggert@cs.ucla.edu> | 15 | 2013-01-17 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 16 | ||
| 3 | Close a race when statting and reading files (Bug#13149). | 17 | Close a race when statting and reading files (Bug#13149). |