Skip to content
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

Random output for markdown xml snippet #8322

Closed
Dschaehn opened this issue Jan 11, 2021 · 3 comments
Closed

Random output for markdown xml snippet #8322

Dschaehn opened this issue Jan 11, 2021 · 3 comments
Labels
bug XML XML Output

Comments

@Dschaehn
Copy link

Dschaehn commented Jan 11, 2021

Describe the bug
When including the following xml code snippet in some .md file I get random output, which makes our XML parser crash:

~~~{xml}
<!--
Id="" Test
-->
~~~

I get e.g. this (output changes after each run):

<para><programlisting filename=".xml"><codeline><highlight class="comment">D</highlight></codeline>
<codeline><highlight class="comment">HQ]Ϋφ�</highlight></codeline>
<codeline><highlight class="comment">--&gt;</highlight></codeline>
</programlisting> </para>

Expected behavior
It starts being instable in commit 0fc06d6. Before the output was stable and looked like this:

<para><programlisting filename=".xml"><codeline><highlight class="comment">&lt;!--</highlight></codeline>
<codeline><highlight class="comment">Id=&quot;&quot;<sp/>Test</highlight></codeline>
<codeline><highlight class="comment">--&gt;</highlight></codeline>
</programlisting> </para>

Even though the code snippet looks meaningless, it should at least produce a stable output without invalid characters.

To Reproduce
Run doxygen with instable_xml_snippet.zip

Version
Windows 10, 64 bit, version 1.9.1 (ef9b20a), downloaded from https://doxygen.nl/files/doxygen-1.9.1-setup.exe

@albert-github albert-github added bug XML XML Output labels Jan 11, 2021
albert-github added a commit to albert-github/doxygen that referenced this issue Jan 11, 2021
- Data space was allocated but never filled.
- Correction for debug mode
@albert-github
Copy link
Collaborator

albert-github commented Jan 11, 2021

I've just pushed a proposed patch, pull request #8323

(please also mention always the, output, file when you show a snippet, makes searching a bit easier. This times there were not that many files but still).

doxygen added a commit that referenced this issue Jan 11, 2021
issue #8322 Random output for markdown xml snippet
@albert-github
Copy link
Collaborator

Code 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).

@albert-github albert-github added the fixed but not released Bug is fixed in github, but still needs to make its way to an official release label Jan 12, 2021
Dschaehn pushed a commit to ModuleWorks/doxygen that referenced this issue Jan 12, 2021
- Data space was allocated but never filled.
- Correction for debug mode
@doxygen
Copy link
Owner

doxygen commented Aug 18, 2021

This issue was previously marked 'fixed but not released',
which means it should be fixed in doxygen version 1.9.2.
Please verify if this is indeed the case. Reopen the
issue if you think it is not fixed and please include any additional information
that you think can be relevant (preferably in the form of a self-contained example).

@doxygen doxygen removed the fixed but not released Bug is fixed in github, but still needs to make its way to an official release label Aug 18, 2021
@doxygen doxygen closed this as completed Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug XML XML Output
Projects
None yet
Development

No branches or pull requests

3 participants