New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doxygen-1.9.1 crashes when parsing config file #8343
Comments
Looks like that the escaped double quotes are the problem here.
It looks like that the Doxyfile:
already triggers the problem. When having:
doxygen doesn't crash, but the output of
and the string used in the mentioned routine is |
@doxygen
When starting the doxywizard with the doxygile of the issue no changed predefines are shown. |
@albert-github What I fixed is that an empty string crashes doxygen, i.e. |
Indeed doxygen does not crash anymore, but it looks like that the output is not what is expected, so I think that we have multiple related problems of which one resulted in a crash and another in the result. In the solution shouldn't also the double quotes be pushed back (and thinking about it probably also the other characters in front of the double quotes)? |
…rt 2) - In the past in case of a quoted string there was a space at the end of the string (as also indicated in the comment), now this space is gone so the `wasQuoted` would not kick in. A string with an escaped double quote should be / has to be escaped so it should also be included in the `wasQuoted` - missing one `data()` -> `str()` (should not give a problem due to the guard, but better for consistency).
For the second part of the problem I've just pushed a proposed patch, pull request #8344 |
issue #8343 doxygen-1.9.1 crashes when parsing config file (part 2)
The code for the second part of the problem has been integrated in master on github (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
Describe the bug
doxygen 1.9.1 crashes when using the following PREDEFINED:
To Reproduce
I uploaded the tarball doxygen-crash.tar.gz which includes the example demonstrates the problem. To reproduce this issue just extract the tarball and run "doxygen"
Version
Doxygen 1.9.1, Using the binary from fedora
Stack trace
Additional context
It works fine with 1.8.20
The text was updated successfully, but these errors were encountered: