librsvg source for verification 2026-05-22

This commit is contained in:
2026-05-22 16:45:08 +08:00
commit 75af7ac721
2138 changed files with 161177 additions and 0 deletions

6
afl-fuzz/input/0000.svg Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50">
<g opacity="0.5">
<rect x="10" y="10" width="30" height="30" fill="blue"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 198 B

6
afl-fuzz/input/0002.svg Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<g transform="translate(20, 20)">
<rect x="0" y="0" width="60" height="60" style="fill:blue; opacity:0.5;"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 234 B

11
afl-fuzz/input/0003.svg Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" baseProfile="basic" id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<g opacity="0.5">
<rect x="60" y="230" width="80" height="40" fill="#0000ff" opacity=".5"/>
<rect x="70" y="240" width="80" height="40" fill="#00ff00" opacity=".5"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 435 B

24
afl-fuzz/input/0004.svg Normal file
View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="321.00" height="27.00" viewBox="0 0 6420 540">
<defs>
<mask id="Mask_big_ex_small" maskUnits="userSpaceOnUse" x="0" y="0" width="6420" height="540">
<g>
<use xlink:href="#big" fill="white"/>
<use xlink:href="#small" fill="black"/>
</g>
</mask>
<g id="big_ex_small">
<use xlink:href="#big" mask="url(#Mask_big_ex_small)"/>
</g>
<mask id="Region0" maskUnits="userSpaceOnUse" x="0" y="0" width="6420" height="540" fill-rule="nonzero">
<use xlink:href="#big_ex_small" fill="white"/>
</mask>
<rect id="big" x="0" y="0" width="6420" height="540"/>
<rect id="small" x="2760" y="20" width="900" height="480"/>
</defs>
<g mask="url(#Region0)">
<g transform="matrix(1.66667 0 0 1.66667 0 0)">
<rect x="0" y="0" width="6420" height="540" fill="black"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 982 B

4
afl-fuzz/input/0005.svg Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48">
<rect x="8" y="8" width="32" height="32" fill="blue"/>
</svg>

After

Width:  |  Height:  |  Size: 167 B

6
afl-fuzz/input/0007.svg Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48">
<g transform="translate(-10, -10)">
<path fill="blue" d="M 18 18 l 32 0 l 0 32 l -32 0 z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 215 B

12
afl-fuzz/input/0008.svg Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<defs>
<clipPath id="one" clipPathUnits="objectBoundingBox">
<path d="M 0.5 0.0 L 1.0 0.5 L 0.5 1.0 L 0.0 0.5 Z"/>
</clipPath>
</defs>
<g clip-path="url(#one)">
<rect x="10" y="10" width="40" height="40" fill="blue"/>
<rect x="50" y="50" width="40" height="40" fill="#00ff00"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 425 B

12
afl-fuzz/input/0009.svg Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<defs>
<mask id="one" maskContentUnits="objectBoundingBox">
<path d="M 0.5 0.0 L 1.0 0.5 L 0.5 1.0 L 0.0 0.5 Z" fill="white"/>
</mask>
</defs>
<g mask="url(#one)">
<rect x="10" y="10" width="40" height="40" fill="blue"/>
<rect x="50" y="50" width="40" height="40" fill="#00ff00"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 428 B

2
afl-fuzz/input/0010.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"/>

After

Width:  |  Height:  |  Size: 81 B

2
afl-fuzz/input/0011.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="10cm" height="20" viewBox="0 0 100 200"/>

After

Width:  |  Height:  |  Size: 128 B

4
afl-fuzz/input/0012.svg Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
<rect x="10" y="20" width="30" height="40"/>
</svg>

After

Width:  |  Height:  |  Size: 161 B

4
afl-fuzz/input/0013.svg Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
<rect id="foo" x="10" y="20" width="30" height="40"/>
</svg>

After

Width:  |  Height:  |  Size: 170 B

5
afl-fuzz/input/0014.svg Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="400" viewBox="0 0 100 400">
<rect id="one" x="0" y="0" width="100" height="200" fill="rgb(0,255,0)"/>
<rect id="two" x="0" y="200" width="100" height="200" fill="rgb(0,0,255)"/>
</svg>

After

Width:  |  Height:  |  Size: 288 B

2
afl-fuzz/input/0015.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"/>

After

Width:  |  Height:  |  Size: 108 B