This is an archive of the discontinued Mercurial Phabricator instance.

util: improve handling of truncated compressed streams
ClosedPublic

Authored by joerg.sonnenberger on Aug 16 2018, 4:30 AM.

Details

Summary

If the compressed stream is over as marked by the reader providing
nothing new and the compression engine is not providing data, bail out.
This can happen in practise when the server misbehaves and would result
in an infinite loop otherwise.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was automatically updated to reflect the committed changes.