GNOME Bugzilla – Bug 792930
Crash on startup in ephy_gsb_utils_rice_delta_decode
Last modified: 2018-01-27 11:52:27 UTC
There is a comment in ephy_gsb_utils_rice_delta_decode: /* This field is never missing. */ first_value_str = json_object_get_string_member (rde, "firstValue"); Evidently that's not true; my Epiphany was crashing on startup today due to this, until I moved away my gsb-threats.db. Attaching it here. (epiphany:6): Json-CRITICAL **: 06:26:16.431: json_object_get_string_member: assertion 'node != NULL' failed Thread 9 "pool" received signal SIGSEGV, Segmentation fault.
+ Trace 238369
Thread 140675874023168 (LWP 17)
It's too big for Bugzilla: https://people.gnome.org/~mcatanzaro/gsb-threats.db
It's hitting users on IRC. Must be a new rule.
(In reply to Michael Catanzaro from comment #1) > It's too big for Bugzilla: > https://people.gnome.org/~mcatanzaro/gsb-threats.db A missing "firstValue" field in a RiceDeltaEncoding object [0] has nothing to do with the local database. Those are received from the server when updating the database, via the threatListUpdates:fetch method [1]. Seems that I was a bit too naive thinking that "firstValue" will always be present. [0] https://developers.google.com/safe-browsing/v4/reference/rest/v4/threatListUpdates/fetch#ricedeltaencoding [1] https://developers.google.com/safe-browsing/v4/reference/rest/v4/threatListUpdates/fetch
Created attachment 367491 [details] [review] gsb-utils: Handle missing firstValue in RiceDeltaEncoding object
Review of attachment 367491 [details] [review]: Thanks!
Attachment 367491 [details] pushed as eccbca2 - gsb-utils: Handle missing firstValue in RiceDeltaEncoding object