GNOME Bugzilla – Bug 739494
e-source-registry-server: Fix a potential NULL pointer dereference
Last modified: 2014-11-08 22:51:22 UTC
Trivial patch attached.
Created attachment 289784 [details] [review] e-source-registry-server: Fix a potential NULL pointer dereference On the code path where backend is NULL, error is always NULL, so dereferencing error->message will result in a crash. Coverity issue: #1250457
Review of attachment 289784 [details] [review]: Please adapt and commit to master and evolution-data-server-3-12. Thanks. ::: libebackend/e-source-registry-server.c @@ +1181,3 @@ "No collection backend '%s' for %s: %s", + backend_name, e_source_get_uid (source), + (error != NULL) ? error->message : NULL); I usually do in these cases: error ? error->message : "Unknown error" It's better than passing NULL for the %s
Committed to master. Committing to 3.12 shortly. Attachment 289784 [details] pushed as 3b90f87 - e-source-registry-server: Fix a potential NULL pointer dereference
(In reply to comment #3) > Committing to 3.12 shortly. The bug doesn’t exist on 3.12, actually, so I haven’t pushed there.