onnxruntime
Throw if unique_ptr or array allocation fails due to SafeInt overflow
#18941
Merged

Throw if unique_ptr or array allocation fails due to SafeInt overflow #18941

skottmckay
skottmckay If we fail to calculate the buffer size (due to overflow) we currentl…
4dc8a717
edgchen1
edgchen1 commented on 2023-12-27
skottmckay Use enforce for allocator and split out to avoid binary size impact.
5d0bce4f
edgchen1
edgchen1 commented on 2023-12-28
edgchen1
edgchen1 commented on 2023-12-28
edgchen1
edgchen1 dismissed these changes on 2023-12-28
skottmckay Fix bug in original code. Luckily the only current usages of MakeUniq…
41d71614
skottmckay skottmckay dismissed their stale review via 41d71614 2 years ago
edgchen1
edgchen1 commented on 2023-12-29
skottmckay Address PR comments
b50ae784
skottmckay Merge remote-tracking branch 'origin/main' into skottmckay/ThrowIfWeC…
d6b9eefe
edgchen1
edgchen1 approved these changes on 2024-01-02
skottmckay skottmckay merged df740d7d into main 2 years ago
skottmckay skottmckay deleted the skottmckay/ThrowIfWeCantAllocateDueToSizeCalcFailure branch 2 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone