Skip to content

Commit

Permalink
Fix undefined behavior caused by invalid geometry elements with markers
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Jan 13, 2025
1 parent 0b3f65b commit e82b745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/svggeometryelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ void SVGGeometryElement::layoutElement(const SVGLayoutState& state)

void SVGGeometryElement::updateMarkerPositions(SVGMarkerPositionList& positions, const SVGLayoutState& state)
{
if(m_path.isEmpty())
return;
auto markerStart = getMarker(state.marker_start());
auto markerMid = getMarker(state.marker_mid());
auto markerEnd = getMarker(state.marker_end());
Expand Down

0 comments on commit e82b745

Please sign in to comment.