Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
53b64418
Commit
53b64418
authored
Aug 13, 2013
by
Paul Eggert
Browse files
* decompress.c (Fzlib_decompress_region): Try to clarify 'avail_out'.
parent
eeaf9bf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/ChangeLog
src/ChangeLog
+4
-0
src/decompress.c
src/decompress.c
+6
-3
No files found.
src/ChangeLog
View file @
53b64418
2013-08-13 Paul Eggert <eggert@cs.ucla.edu>
* decompress.c (Fzlib_decompress_region): Try to clarify 'avail_out'.
2013-08-13 Dmitry Antipov <dmantipov@yandex.ru>
* window.h (struct window): Convert left_margin_cols and
...
...
src/decompress.c
View file @
53b64418
...
...
@@ -26,6 +26,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include "character.h"
#include "buffer.h"
#include <verify.h>
static
Lisp_Object
Qzlib_dll
;
#ifdef WINDOWSNT
...
...
@@ -178,10 +180,11 @@ This function can be called only in unibyte buffers. */)
do
{
/* Maximum number of bytes that one 'inflate' call should read and write.
zlib requires that these values not exceed UINT_MAX
.
Do not make avail_out too large, as that might unduly delay C-g
. */
Do not make avail_out too large, as that might unduly delay C-g
.
In any case zlib requires that these values not exceed UINT_MAX
. */
ptrdiff_t
avail_in
=
min
(
iend
-
pos_byte
,
UINT_MAX
);
ptrdiff_t
avail_out
=
min
(
1
<<
14
,
UINT_MAX
);
enum
{
avail_out
=
1
<<
14
};
verify
(
avail_out
<=
UINT_MAX
);
ptrdiff_t
decompressed
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment