Skip to content

refactor: Prevent overflow in backend APIs #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 7, 2025

Conversation

yinggeh
Copy link
Contributor

@yinggeh yinggeh commented May 5, 2025

Add additional checks in function GetElementCount and GetByteSize.
Return -2 if invalid dim.
Return -3 if overflow.

@yinggeh yinggeh self-assigned this May 5, 2025
@yinggeh yinggeh force-pushed the yinggeh-DLIS-8307-backend-integer-overflow-check branch from 7e4c8cc to 491a27d Compare May 5, 2025 07:59
@yinggeh yinggeh changed the title refactor refactor: Use safer backend APIs May 5, 2025
@yinggeh yinggeh changed the title refactor: Use safer backend APIs refactor: Prevent overflow in backend APIs May 5, 2025
@yinggeh yinggeh requested a review from tanmayv25 May 6, 2025 11:30
@yinggeh yinggeh merged commit eb6a13f into main May 7, 2025
1 check passed
@yinggeh yinggeh deleted the yinggeh-DLIS-8307-backend-integer-overflow-check branch June 18, 2025 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants