[Pidgin] #6036: certificate.c segfault on NULL ptr dereference (patch attached)

Pidgin trac at pidgin.im
Sun Jun 8 14:33:23 EDT 2008


#6036: certificate.c segfault on NULL ptr dereference (patch attached)
------------------------+---------------------------------------------------
  Reporter:  toofishes  |       Owner:        
      Type:  patch      |      Status:  closed
  Priority:  minor      |   Milestone:  2.5.0 
 Component:  libpurple  |     Version:  2.4.2 
Resolution:  fixed      |    Keywords:        
   Pending:  0          |  
------------------------+---------------------------------------------------
Comment (by toofishes):

 I'm not in the copyright file, but I don't really want to claim copyright
 for something as minor as this so feel free to leave me out. If you insist
 you can put Dan McGee in there but I don't see the need.

 This is what I ended up doing for our Arch Linux Pidgin package:

 {{{
 --- libpurple/certificate.c.old 2008-06-06 18:35:03.000000000 -0500
 +++ libpurple/certificate.c 2008-06-06 18:58:32.000000000 -0500
 @@ -745,8 +745,8 @@
         x509_ca_paths = g_list_append(NULL, g_build_filename(DATADIR,
                            "ca-certs", NULL));
  #else
 -       x509_ca_paths = g_list_append(NULL, g_build_filename(DATADIR,
 -                          "purple", "ca-certs", NULL));
 +       x509_ca_paths = g_list_append(NULL, g_build_filename("/etc",
 +                          "ssl", "certs", NULL));
  #endif
     }

 }}}

 So yes, purple_certificate_add_ca_search_path() is the relevant function,
 but I was speaking more about the default path rather than calling an API
 function from who knows where.

 P.S. I like how it wikifies my surname...

-- 
Ticket URL: <http://developer.pidgin.im/ticket/6036#comment:4>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list