fix: avoid div by zero and underflow in pitch alloc size guess#226
fix: avoid div by zero and underflow in pitch alloc size guess#226mesutoezdil wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mesutoezdil The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
📝 WalkthroughWalkthrough
ChangesPitch validation
Estimated code review effort: 2 (Simple) | ~5 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
4a85089 to
07de3e1
Compare
Zero WidthInBytes underflows the size guess to SIZE_MAX, zero ElementSizeBytes divides by zero and crashes. This guards both to 0 before the guess is computed.
Summary by CodeRabbit