GNOME Bugzilla – Bug 643279
[PATCH] Doxygen crashes when trying to emit a warning on a function with a % in the method header (C++/CLI)
Last modified: 2012-11-18 11:11:31 UTC
Created attachment 181907 [details] Patch file to fix the described issue When doxygen needs to emit a warning on a function like CSensorGroup::CSensorGroup(FPMLibrary::CSensorGroup% sg) { ... } (attempting to generate something like:) D:/Projects/ADS/Software/FCMS/dcl/FPM/FPMLibTestNet/HelperClasses.cpp(305): warning: no uniquely matching class member found for CSensorGroup::CSensorGroup(FPMLibrary::CSensorGroup% sg) it crashes. The reason is that an attempt is made to interpret the method header as format specifier for vfprintf() with no corresponding argument given (note that the declared parameter name starts with an "s"!) I have attached a patch that fixes the issue (works for me, at least). Oh, and the patch addresses another issue, too: parseCommentAsText() may generate assertions in isspace() if an Utf8 character is encountered. Only "half" the character is passed on to isspace(), because result.at(i) returns just char, not an Utf8 character. That "half" character can be anything, though. Patrick
Thanks for your patch. I'll include it (with some adaptations) in the next subversion update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.7.4. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant.