-
Notifications
You must be signed in to change notification settings - Fork 289
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
Fix a few crashes on 1.9 #2335
Fix a few crashes on 1.9 #2335
Conversation
Some japanese user profiles are breaking the flatbuffer profile builder for some reason Changelog-Fixed: Fix pretty bad crash when building flatbuffer profiles Signed-off-by: William Casarin <jb55@jb55.com>
This fixes a reflection runtime error for our custom picker Signed-off-by: William Casarin <jb55@jb55.com>
Changelog-Fixed: Fix crash when adding duplicate mute items Signed-off-by: William Casarin <jb55@jb55.com>
Changelog-Fixed: Fix crash on profile page when there are profile updates Signed-off-by: William Casarin <jb55@jb55.com>
Went through and fixed a bunch more crashes |
@@ -82,7 +82,7 @@ extern "C" { | |||
* Note: some internal assertion will remain if disabled. | |||
*/ | |||
#ifndef FLATCC_BUILDER_ASSERT_ON_ERROR | |||
#define FLATCC_BUILDER_ASSERT_ON_ERROR 1 | |||
#define FLATCC_BUILDER_ASSERT_ON_ERROR 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we ruled out the risk that the aforementioned errors could corrupt flatbuffer data and cause further issues down the line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is handled here:
NdbProfile_parse_json_table(ctx, buf, buf + bufsiz, profile);
if (ctx->error)
return 0;
in ndbprofile_parse_json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Do we have similar guards around other flatbuffer objects like ndbnotes and such (given that this constant looks global)? If we do, then this LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file LGTM
Closing in favor of #2336 |
Some japanese user profiles are breaking the flatbuffer profile builder for some reason
Changelog-Fixed: Fix pretty bad crash when building flatbuffer profiles