( )⚙ 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
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

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