bugWeeChat - Bugs: bug #28752, Crash when connecting to irc...

 
 

bug #28752: Crash when connecting to irc server with ssl and ssl_cert set

Submitted by:  Sebastien Helleu <flashcode>
Submitted on:  Thu 28 Jan 2010 08:48:28 AM UTC  
 
Category: irc pluginSeverity: 4 - Important
Item Group: crashStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.3.1IRC nick: FlashCode

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 29 Jan 2010 11:49:12 AM UTC, comment #1:

Problem was use of local variables in gnutls callback, which were still used after end of callback by gnutls. And so they were destroyed when exiting callback, and gnutls uses bad pointer.

Fix: move these 2 variables (tls_cert and tls_cert_key) into server structure, so that they are still available for gnutls even after end of callback.

Version 0.3.1.1 will be released soon with this fix + bug #28741 (another bug in gnutls callback).

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Thu 28 Jan 2010 08:48:28 AM UTC, original submission:

WeeChat crashes (in gnutls lib) when connecting to irc server with ssl and if ssl_cert is set.

There is crash only if WeeChat is compiled with debug (cmake -DCMAKE_BUILD_TYPE=Debug). No crash if WeeChat is compiled without debug, for example for release (cmake -DCMAKE_BUILD_TYPE=Release).

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 Apr 2010 07:24:30 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Fri 29 Jan 2010 11:49:12 AM UTCflashcodeStatusIn Progress=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1