Fix recovering from possible decompression error. Since
[bpt/emacs.git] / src / ChangeLog
index f2bb1fe..e4dcfff 100644 (file)
@@ -1,3 +1,13 @@
+2013-08-26  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       Fix recovering from possible decompression error.  Since
+       insert_from_gap doesn't always move point, we can't use PT as
+       the position where the partially decompressed data ends, and
+       should count how may bytes was produced so far.
+       * decompress.c (struct decompress_unwind_data): Add nbytes member.
+       (unwind_decompress): Really delete partially uncompressed data.
+       (Fzlib_decompress_region): Take decompressed data size into account.
+
 2013-08-26  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * syntax.c (init_syntax_once): Adjust comment and do an early