-
Notifications
You must be signed in to change notification settings - Fork 284
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
Avoid array out of bounds read in friend saving. #346
Conversation
Reviewed 1 of 1 files at r1. toxcore/Messenger.c, line 2732 at r1 (raw file):
Why not precalculate Comments from Reviewable |
Reviewed 1 of 1 files at r1. Comments from Reviewable |
Reviewed 1 of 1 files at r1. toxcore/Messenger.c, line 2732 at r1 (raw file):
Comments from Reviewable |
@iphydf just curious, what's |
Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful. toxcore/Messenger.c, line 2732 at r1 (raw file): Previously, nurupo wrote…
Thanks for explanation Comments from Reviewable |
Yes: https://docs.oracle.com/javase/7/docs/api/java/lang/ArrayIndexOutOfBoundsException.html. There was no exception in C, and ASAN can't catch it, but in Java there would have been an AIOOBE. Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. toxcore/Messenger.c, line 2732 at r1 (raw file): Previously, Diadlo (Polshakov Dmitry) wrote…
Moved it to a variable. Comments from Reviewable |
Fixes #345.
This change is