Skip to content
Commit bdd40a3d authored by Volker Krause's avatar Volker Krause Committed by Laurent Montel
Browse files

Fix potential out-of-bounds access in unfoldHeaders() for invalid input

The current code failed for input starting with (optionally) spaces and a
line break. This shouldn't actually happen under normal circumstances, but
the Qt6 build somehow manages to feed this into here.

As foldBegin is already checked for being null in the outside loop, the
inner loop condition was basically always true here, so this will read
outside of the input of we start with spaces.
parent befbbea7
Pipeline #184808 passed with stage
in 2 minutes and 37 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment