Page MenuHomePhabricator

evas_vg_load_svg: Fix negative attrs length
ClosedPublic

Authored by jsuya on Sun, Jan 9, 8:54 PM.

Details

Summary

After finding no attributes but spaces, attrsLength could be negative.
This will cause a segfault in parser functions.
So, change the position of attrs_length to prevent this.

Test Plan

Example SVG

<?xml version="1.0" encoding="UTF-8"?>
<svg><g  ></g></svg>

Diff Detail

Repository
rEFL core/efl
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 17570
Build 11832: arc lint + arc unit
jsuya created this revision.Sun, Jan 9, 8:54 PM
jsuya requested review of this revision.Sun, Jan 9, 8:54 PM
Hermet accepted this revision.Tue, Jan 11, 6:18 PM
This revision is now accepted and ready to land.Tue, Jan 11, 6:18 PM
Hermet closed this revision.Tue, Jan 11, 6:24 PM