forked from rockdaboot/wget2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
818 changed files
with
21,150 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright(c) 2017 Free Software Foundation, Inc. | ||
* | ||
* This file is part of libwget. | ||
* | ||
* Libwget is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Libwget is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with libwget. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <config.h> | ||
|
||
#include <assert.h> | ||
#include <stdio.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
#include "wget.h" | ||
#include "fuzzer.h" | ||
|
||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) | ||
{ | ||
if (size > 10000) // same as max_len = 10000 in .options file | ||
return 0; | ||
|
||
char *in = (char *) malloc(size + 2); | ||
assert(in != NULL); | ||
|
||
// 0 terminate | ||
memcpy(in, data, size); | ||
in[size] = in[size + 1] = 0; | ||
|
||
WGET_HTML_PARSED_RESULT *res = wget_html_get_urls_inline(in, NULL, NULL); | ||
wget_html_free_urls_inline(&res); | ||
|
||
free(in); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"<base" | ||
"<link" | ||
"<meta" | ||
"action" | ||
"href" | ||
"src" | ||
"srcset" | ||
"style" | ||
"follow" | ||
"nofollow" | ||
"all" | ||
"none" | ||
"robots=" | ||
"name=\"robots\"" | ||
"content=" | ||
"http-equiv=\"Content-Type\"" | ||
"charset=" | ||
"style=" | ||
"rel=\"shortcut icon\"" | ||
"rel=\"stylesheet\"" | ||
"rel=\"preload\"" | ||
"srcset=" |
93 changes: 93 additions & 0 deletions
93
fuzz/libwget_html_url_fuzzer.in/001b9205f97b9463d6a757481b38e96c97ae5167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
CCCCCCCCCCCCCCCCCCCCCCC...<style>...........<scripHt>..................*3....�..............<meta==================CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou�����>...�<menuite>omeur>(<sce>u<ce>(<sou������<men> | ||
<<men> | ||
<!u?o<fu<ce!rm>u<ce>on>u<ce>(<sou>(������<mtton>u<ce>(<sou�<ce>(������������<m������ | ||
<sou�� | ||
<s� | ||
<style>����������������������������������� | ||
<sou�� | ||
<sou�CCCCCC...<style>...........<scripHt>..................*3....�..............<meta==================CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou�����>...�<menuite>omeur>(<sce>u<ce>(<sou������<men> | ||
<<men> | ||
<!u?o<fu<ce!rm>u<ce>on>u<ce>(<sou>(������<mtton>u<ce>(<sou�<ce>(������������<m������ | ||
<sou�� | ||
<s� | ||
<style>����������������������������������� | ||
<sou�� | ||
<sou� | ||
<?!ou<����<men> | ||
<?!ou<f!rm>u<�!rm������������ | ||
<sou�� | ||
<sou�CC<td>CCCCCCCu�� | ||
<p><sou<so�� | ||
<h3>* | ||
<soCCC�CCCCCC=========== | ||
<style>............................<style>...........<scripHt>..................*3....�..............<meta==================CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou�����>...�<menuite>omeur>(<sce>u<ce>(<sou��� | ||
<?!ou<����<men> | ||
<?!ou<f!rm>u<�!rm������������ | ||
<sou�� | ||
<sou�CC<td>CCCCCCCu�� | ||
<p><sou<so�� | ||
<h3>* | ||
<soCCC�CCCCCC==========CCCCCCCCCCC...<style>...........<scripHt>..................*3....�..............<meta==================CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou�����>...�<menuite>omeur>(<sce>u<ce>(<sou������<men> | ||
<<men> | ||
<!u?o<fu<ce!rm>u<ce>on>u<ce>(<sou>(������<mtton>u<ce>(<sou�<ce>(������������<m������ | ||
<sou�� | ||
<s� | ||
<style>����������������������������������� | ||
<sou�� | ||
<sou� | ||
<?!ou<����<men> | ||
<?!ou<f!rm>u<�!rm������������ | ||
<sou�� | ||
<sou�CC<td>CCCCCCCu�� | ||
<p><sou<so�� | ||
<h3>* | ||
<soCCC�CCCCCC=========== | ||
<style>............................<style>...........<scripHt>..................*3....�..............<meta==================CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou�����>...�<menuite>omeur>(<sce>u<ce>(<sou������<men> | ||
<<men> | ||
<!u?o<fu<ce!rm>u<ce>on>u<ce>(<sou>(������<mtton>u<ce>(<sou�<ce>(������������<m������ | ||
<sou�� | ||
<s� | ||
<style>����������������������������������� | ||
<sou�� | ||
<sou� | ||
<?!ou<����<men> | ||
<?!ou<f!rm>u<�!rm������������ | ||
<sou�� | ||
<sou� | ||
<?!ou<����<men> | ||
<?!ou<f!rm>u<ce>(��������������������<mi>����������������������<t.................................!rm>u<?!ou<f!rm>u<sou���<f!r���������= | ||
<style>............................<style>...........<scripHt>..................*3....�..............<meta==================CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou�����>...�<menuite>omeur>(<sce>u<ce>(<sou������<men> | ||
<<men> | ||
<!u?o<fu<ce!rm>u<ce>on>u<ce>(<sou>(������<mtton>u<ce>(<sou�<ce>(������������<m������ | ||
<sou�� | ||
<s� | ||
<style>����������������������������������� | ||
<sou�� | ||
<sou� | ||
<?!ou<����<men> | ||
<?!ou<f!rm>u<�!rm������������ | ||
<sou�� | ||
<sou� | ||
<?!ou<����<men> | ||
<?!ou<f!rm>u<ce>(��������������������<mi>����������������������<t.................................!rm>u<?!ou<f!rm>u<sou���<f!r�����������������������r>���� | ||
<su | ||
>� | ||
<so | ||
<sou��u<s<sourcemenuit>em< | ||
<sou<sousource>(������<menuite>omur<sce> | ||
<����������������������������<m������ | ||
<sou�� | ||
<s����s<imag | ||
<sty)<f!r==========================================�����= |
11 changes: 11 additions & 0 deletions
11
fuzz/libwget_html_url_fuzzer.in/003d2fbc307aec8a4bcaf686e914f58ea2dc7a7f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
�Ì���Óm>�� | ||
<sou<sou������< | ||
<sou | ||
<s!ou�� | ||
<sou<sou����<===========================================================<data====<datalist>===sou������<menuit>em<s/urcemenuit��<>ou����===============================<data====<datalist>===sou������<menuit>em<s/urcemenuit��<>ou������< | ||
<sou | ||
<s!ou�� | ||
<sou<sou����<s(u���������< | ||
<sou | ||
<s!ou�� | ||
<sou<sou����<=====================================================================================================================< |
103 changes: 103 additions & 0 deletions
103
fuzz/libwget_html_url_fuzzer.in/008e13c9dff29a45d11c2411f2d2b43d2fd4fe8d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
|
||
<!-<hgroup>>s!ou�� | ||
<h3>c | ||
<soCCC�CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC===CCCCCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�CCCCCCCCCCCCCCCCCC | ||
<!-<hgroup>>s!ou�� | ||
<h3>c | ||
<soCCC�CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC===CCCCCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�CCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<Cu�� | ||
<sou<sou������<me=========?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�C<?CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<meCCCCCCCCCCCCC<td>CCCCCCCuCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC===CCCCCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�CCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<Cu�� | ||
<sou<sou������<me=========?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�C<?CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<meCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<menuite>omeur>(<sce>CCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<Cu�� | ||
<sou<sou������<me=========?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�C<?CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<meCCCCCCCCCCCCC<td>CCCCCCCuCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC===CCCCCCCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�C�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<meCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<menuite>omeur>(<sce>CCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<Cu�� | ||
<sou<sou������<me=========?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�C<?CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<s=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�CCCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<Cu�� | ||
<sou<sou������<me=========?�=======<pre>===CCCCCCCCCC!ou�� | ||
<h3>c | ||
<soCCC�CCCCC�C<?CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<so�� | ||
<h3>c | ||
<soCCC�CCCCCC============?�=======<pre=>==CCCCCCCCCCCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<meCCCCCCCCCCCCC<td>CCCCCCCu�� | ||
<sou<sou������<menuite>ou������<menuite>oC<td>CCCC<CCu�� | ||
<sou<sou������<menuite>omeur>(<sce>( |
23 changes: 23 additions & 0 deletions
23
fuzz/libwget_html_url_fuzzer.in/01343f7aafd164c88740cfe403b78bb68910c381
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
fuzz/libwget_html_url_fuzzer.in/013a8d40581d233a69f7d0ec92dc182d69013d24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
<sou�<''''''''''''''''''''''''<!-� | ||
sou<sou������ | ||
<''''''''srcset='�������������������������������������������������������������������..........<style>.....,...............................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>.....................................3..........................<sty..e>l....................................� | ||
<'''''''''*'''''''<!-� | ||
<'srcset=<''''''''''%'''''<!-� | ||
<''''''''''''''''''''''''''''''''''<!-� | ||
<''''''''''''''''''''''''<!-� | ||
sou<sou������ | ||
<''''''''srcset='�������������������������������������������������������������������..........<style>.....,...............................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>.....................................3..........................<sty..e>l.................................................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>.....................................3............3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>.....................................3..........................<sty..e>l.................................................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>.....................................3..................<style>.....,...............................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>.......style=..............................3..........................<sty..e>l.................................................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>................................srcset=.........................<sty..e>l..............<style>.....,...............................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>.....................................3..........................<sty..e>l.................................................3.. | ||
<style>�������......,...................1y<.tl | ||
s.e>................................srcset=.........................<sty..e>l........����<!-� | ||
<'<''''''''''%'''''<!-� | ||
<''''''.......................''''''''''''...'.3 |
9 changes: 9 additions & 0 deletions
9
fuzz/libwget_html_url_fuzzer.in/0153aaf7e7cd984d338a7d64e75393ca60ed10a1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
<script>r?!ou<f<script>r?!ou<f!rm>u<sou������<men> | ||
<?!ou<f!rm>u<ce>(<sou������<men> | ||
<?!om>u<?!ou<f!rm>u<sou������<men> | ||
<?!ou<f!rm>u<ce>(<sou����!rm>u<sou������<men> | ||
<?!ou<f!rm>u<ce>(<sou������<men> | ||
<?!om>u<?!ou<f!rm>u<sou������<men> | ||
<?!ou<f!rm>u<ce>(<sou������<men> | ||
<?!ou<f!rm>u<ce>( |
Oops, something went wrong.