Skip to content

Conversation

drewnoakes
Copy link
Owner

Fixes #62

Adds a new abstract overload for reading a single byte. That method will not do any explicit bounds validation, so callers must do that beforehand. In cases where multiple bytes are read, the validation can be performed once per value, rather than once per byte.

@drewnoakes
Copy link
Owner Author

This has some failures in the (manual) regression tests that need to be investigated.

@drewnoakes drewnoakes marked this pull request as draft May 1, 2023 02:28
Fixes #62

Adds a new abstract overload for reading a single byte. That method will not do any explicit bounds validation, so callers must do that beforehand. In cases where multiple bytes are read, the validation can be performed once per value, rather than once per byte.
@drewnoakes drewnoakes force-pushed the reduce-bounds-checking branch from a5affc4 to 125eed5 Compare May 8, 2023 03:50
@drewnoakes drewnoakes marked this pull request as ready for review May 8, 2023 04:15
@drewnoakes drewnoakes merged commit 2fd3932 into master May 8, 2023
@drewnoakes drewnoakes deleted the reduce-bounds-checking branch May 8, 2023 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Excessive bounds checking when reading multi-byte values
1 participant