[Boost-bugs] [ boost-Bugs-1538741 ] wstring_rvalue_from_python crash on zero length PyObject

Bugs item #1538741, was opened at 2006-08-11 14:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1538741&group_id=7586 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: Python Group: None Status: Open Resolution: None Priority: 5 Submitted By: Goncalo Nuno M. de Carvalho (glslang) Assigned to: David Abrahams (david_abrahams) Summary: wstring_rvalue_from_python crash on zero length PyObject Initial Comment: Using Python 2.3 (OSX native) and OSX 10.4.7 (powerpc-apple-darwin8- gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5341)) Boost version is 1_33_1 and was compiled from source. When PyObject_Length(intermediate) is zero in wstring_rvalue_from_python::extract (when referring to an empty string) a crash will occur in PyUnicode_AsWideChar, most probably because 0 is then passed to it. Doing a if( result.empty( ) ) return std::wstring( ) right after the result string is constructed seems to solve this and produce correct results on my code. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1538741&group_id=7586 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net