8000 Fix possible out of bound array access by zhao-gang · Pull Request #254 · haoel/leetcode · GitHub
[go: up one dir, main page]

Skip to content

Fix possible out of bound array access #254

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

Conversation

zhao-gang
Copy link
Contributor

Should check array size before accessing the second to fourth bytes of
utf8 as there might be not enough data left in the array.

Should check array size before accessing the second to fourth bytes of
utf8 as there might be not enough data left in the array.
@haoel haoel merged commit 51ea33c into haoel:master Nov 12, 2021
qinyafee pushed a commit to qinyafee/leetcode that referenced this pull request Jan 28, 2022
Should check array size before accessing the second to fourth bytes of
utf8 as there might be not enough data left in the array.
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
0