( )⚙ D5464 parsers: better bounds checking in fm1readmarkers

This is an archive of the discontinued Mercurial Phabricator instance.

parsers: better bounds checking in fm1readmarkers
ClosedPublic

Authored by durin42 on Dec 20 2018, 1:41 AM.

Details

Summary

Our Python already calls this with reasonable values consistently, but
my upcoming fuzzer is extremely quick to discover the lack of sanity
checking here.

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

durin42 created this revision.Dec 20 2018, 1:41 AM
This revision was automatically updated to reflect the committed changes.