Skip to content

Aborted has occurred when running program svg2png in function SVGPreserveAspectRatio::getTransform at source/svgproperty.cpp #253

Description

@Du4t

Description

Aborted has occurred when running program svg2png in function SVGPreserveAspectRatio::getTransform at source/svgproperty.cpp:577

Version

Author: Samuel Ugochukwu <sammycageagle@gmail.com>
Date:   Wed Nov 26 06:57:43 2025 +0100

    Bump plutovg version to v1.3.2

Steps to reproduce

$ git clone https://github.com/sammycage/lunasvg
$ cd lunasvg; mkdir build-release; cd build-release; cmake ../; make -j12
$ ./examples/svg2png poc-Aborted-getTransform
svg2png: /Data/du4t/Fuzz-Framework/test/lunasvg/source/svgproperty.cpp:577: lunasvg::Transform lunasvg::SVGPreserveAspectRatio::getTransform(const lunasvg::Rect&, const lunasvg::Size&) const: Assertion `!viewBoxRect.isEmpty() && !viewportSize.isEmpty()' failed.
Aborted

POC

https://github.com/Du4t/POC/blob/main/lunasvg/poc-Aborted-getTransform

Impact

Potentially causing DoS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions