[x] I have written a descriptive pull-request title
[x] I have verified that there are no overlapping pull-requests open
[x] I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules :cop:.
[x] I have provided test coverage for my change (where applicable)
Description
Add additonal checks to handle corrupt files better in the PBM decoder.
Also extend BufferedReadStream to monitor the number of times it has been made to hit EOF by read calls. This improves the testability of decoder behavior. The perf impact of the BufferedReadStream change is within the margin of error.
Prerequisites
Description
Add additonal checks to handle corrupt files better in the PBM decoder.
Also extend
BufferedReadStream
to monitor the number of times it has been made to hit EOF by read calls. This improves the testability of decoder behavior. The perf impact of theBufferedReadStream
change is within the margin of error.