Skip to content

reallocarr overflow check ordering fix.#863

Merged
mjp41 merged 1 commit into
microsoft:mainfrom
devnexen:reallocarr_fix_oflow
Jun 27, 2026
Merged

reallocarr overflow check ordering fix.#863
mjp41 merged 1 commit into
microsoft:mainfrom
devnexen:reallocarr_fix_oflow

Conversation

@devnexen

Copy link
Copy Markdown
Collaborator

check the overflow flag before the zero-size early return, otherwise an overflow truncating to zero is wrongly reported as success.

check the overflow flag before the zero-size early return, otherwise an
overflow truncating to zero is wrongly reported as success.

@mjp41 mjp41 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good catch.

@mjp41 mjp41 merged commit f70eb82 into microsoft:main Jun 27, 2026
198 checks passed
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.

2 participants