Skip to content

Fix garbage in CDATA values for shorter texts

crvi requested to merge crvi/totem-pl-parser:cdata-parsing-fixes into master

This change properly null terminates the CDATA values. For shorter CDATA values, this fix is mandatory to override the token buffer text which contains the previous token value of '<![CDATA['. CDATA value is overwritten on top of this CDATA marker causing gargbage data.

For longer texts, this wasn't an issue, as the token buffer ( 64K ) is already filled with NULL chars, causing this issue to not show up.

Closes: #30 (closed)

Edited by crvi

Merge request reports