Skip to content

fix AnsiHighlighter::highlightData() with valid definition, but without any context

When there is no context, AnsiHighlighter::applyFormat() is used with no value in ansiStyles which results in out-of-bounds access.

The other 2 commits are to reduce allocations, but this is not noticeable.

Merge request reports