Closed pontus closed 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 72.90%. Comparing base (
1f71185
) to head (c042c65
). Report is 6 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This adds some sanity limits when reading header packets without which one could possibly executedenial-of-service attacks through resource consumption.
I normally do not like libraries arbitrarily restricting otherewise valid usages, but think these limits are permissive enough that it should not be a problem. If it's still considered too restrictive, one can implement the ability to pass flags through varargs, meaning the signature used in calls could remain the same so no code would need to be rewritten unless they want to pass such flags). I currently can't think of any use case that would need that, though.