HomePhabricator

vg_common_svg: Fix when the number of polygon points is odd

Authored by jsuya on Tue, Jan 11, 6:35 PM.

Description

vg_common_svg: Fix when the number of polygon points is odd

Summary: If the number of points is odd, an overflow occurs in array[i+1].

Test Plan:
Test Svg image

<svg xmlns="http://www.w3.org/2000/svg" id="svg1" viewBox="0 0 200 200">
    <title>Not enough points</title>
    <desc>Must contain at least 4 points</desc>

    <polygon id="polygon1" points="20 40 160 40 10" fill="none" stroke="red"/>

    <!-- image frame -->
    <rect id="frame" x="1" y="1" width="198" height="198" fill="none" stroke="black"/>
</svg>

Reviewers: Hermet, raster, kimcinoo

Reviewed By: Hermet

Subscribers: cedric, reviewers, committers

Tags: efl

Differential Revision: https://phab.enlightenment.org/D12319

Details

Committed
HermetTue, Jan 11, 6:35 PM
Reviewer
Hermet
Differential Revision
D12319: vg_common_svg: Fix when the number of polygon points is odd
Parents
rEFLef784708b927: evas_vg_load_svg: Fix colorstop offset parser
Branches
Unknown
Tags
Unknown