Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
e6a118ee
Commit
e6a118ee
authored
Jan 26, 2015
by
Paul Sokolovsky
Browse files
moduzlib: Update to uzlib v1.2.
Actually manage size of the output buffer.
parent
2f8c409a
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/uzlib/tinflate.c
View file @
e6a118ee
...
...
@@ -337,6 +337,7 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt)
}
*
d
->
dest
++
=
sym
;
d
->
destRemaining
--
;
}
else
{
...
...
@@ -366,6 +367,7 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt)
}
d
->
dest
+=
length
;
d
->
destRemaining
-=
length
;
}
}
}
...
...
@@ -397,6 +399,7 @@ static int tinf_inflate_uncompressed_block(TINF_DATA *d)
/* copy block */
for
(
i
=
length
;
i
;
--
i
)
*
d
->
dest
++
=
*
d
->
source
++
;
d
->
destRemaining
-=
length
;
/* make sure we start next block on a byte boundary */
d
->
bitcount
=
0
;
...
...
Write
Preview
Supports
Markdown
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