Skip to content

uzlib: update to more robust version of uzlib#818

Closed
jepler wants to merge 3 commits into
adafruit:masterfrom
jepler:uzlib-fuzzer-fixes
Closed

uzlib: update to more robust version of uzlib#818
jepler wants to merge 3 commits into
adafruit:masterfrom
jepler:uzlib-fuzzer-fixes

Conversation

@jepler
Copy link
Copy Markdown

@jepler jepler commented May 8, 2018

This one should probably be considered more a "request for comments" than a "ready to be merged".

I will be throwing a fuzzer at circuitpython with this patch, to see if anything new pops up; probably something will, because circuitpython can also use the stream-mode decompressor which was not fuzzed as yet.

We also need to consider the best way to refer to the submodule; I don't particularly desire putting myself forward as a long-term maintainer of uzlib, which would sort of be implied if this patch were accepted pointing at my personal fork of uzlib.

jepler added 3 commits May 7, 2018 20:03
Textualy, the files in lib/uzlib/src were identical to the ones committed
in extmod/uzlib so there should be no behavioral change possible as a
result of this commit.
@tannewt
Copy link
Copy Markdown
Member

tannewt commented May 8, 2018

Where did pfalcon get the code? Is it possible we should rely on a further upstream? We can also change the submodule source later too.

@jepler
Copy link
Copy Markdown
Author

jepler commented May 8, 2018

From what I've been able to discern, uzlib is based on tinf/tinflate at https://bitbucket.org/jibsen/tinf -- tinf appears to be unmaintained, is only an inflate (not deflate) implementation, and is designed to only accept trusted inputs -- "the zlib library has many more features, is more secure, and mostly faster ... it does assume it is given valid compressed data". I don't think we can switch to tinf as upstream.

pfalcon has been receptive to my PR (but with changes requested), so let's give that some time to shake out before we really decide we have to switch upstreams.

@tannewt
Copy link
Copy Markdown
Member

tannewt commented May 9, 2018 via email

@tannewt
Copy link
Copy Markdown
Member

tannewt commented Jun 5, 2018

@jepler Please create a new PR when changes are upstream. Thanks!

@tannewt tannewt closed this Jun 5, 2018
@jepler jepler deleted the uzlib-fuzzer-fixes branch March 27, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants