LoginHomeBugs & FeaturesDocumentationDownloadForums
ID:107
Status:5 - New
Priority:4 - High, e.g. key functionality not working
Scope:2 - Specific to an operating system
Subsystem:Unassigned
Summary:Wrong double-usage of va_list parameter in _mxml_vstrdupf()
Version:2.6
Created By:palo
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File

Name/Time/DateFilename
palo
07:16 Jun 25, 2010
mxml_fix_strdup.diff

Trouble Report Dialog:

Name/Time/DateText
palo
07:16 Jun 25, 2010
I've found bug in mxml-string.c: _mxml_vstrdupf() function. Double-usage of va_list parameter is wrong and behaves bad in 64-bit environment. See related topic in
http://osdir.com/ml/linux.redhat.amd64/2006-12/msg00001.html
http://bytes.com/topic/c/answers/215847-reusing-va_list

If you want to reproduce the bug or write regression testcase, just call mxmlNewCDATA() with string bigger than 256 bytes, in 64-bit linux OS.
Attached is the fix.