Bugs item #3537811, was opened at 2012-06-25 07:59
Message generated for change (Tracker Item Submitted) made by igor_filippov
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3537811&group_id=40728

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library Functions
Group: 2.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Igor (igor_filippov)
Assigned to: Nobody/Anonymous (nobody)
Summary: double free in rxnformat.cpp/obconversion.cpp

Initial Comment:
When  RXN format output is created from from OBReaction there is a segfault in 
line 261 in obconversion.cpp:

 if(pInStream && NeedToFreeInStream) {
      delete pInStream;    <<<<<<<< here
      pInStream=NULL;  
      NeedToFreeInStream = false;
    }

I think this has something to do with the following portion of rxnformat.cpp:

OBConversion MolConv(*pConv); //new copy to use to write associated MOL
    MolConv.AddOption("no$$$$",OBConversion::OUTOPTIONS);
    MolConv.SetAuxConv(NULL); //temporary until a proper OBConversion

My suspicion is that pInStream is getting deleted twice - through the original 
OBConversion object and through the MolConv copy.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3537811&group_id=40728

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to