<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libubox/tests/fuzz/test-fuzz.c, branch master</title>
<subtitle>C utility functions for OpenWrt</subtitle>
<id>https://git-03.infra.openwrt.org/project/libubox/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/libubox/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/'/>
<updated>2020-01-20T15:54:10Z</updated>
<entry>
<title>tests: prefer dynamically allocated buffers</title>
<updated>2020-01-20T15:54:10Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-01-18T17:32:55Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=5c0faaf4f5e26180dcc31b7e8558d57426d84085'/>
<id>urn:sha1:5c0faaf4f5e26180dcc31b7e8558d57426d84085</id>
<content type='text'>
Help detecting Valgrind OOB reads and other issues.

 Conditional jump or move depends on uninitialised value(s)
   at 0x5452886: blobmsg_parse (blobmsg.c:203)
   by 0x400A8E: test_blobmsg (tests/test-blobmsg-parse.c:66)
   by 0x400A8E: main (tests/test-blobmsg-parse.c:82)

 Conditional jump or move depends on uninitialised value(s)
   at 0x545247F: blobmsg_check_name (blobmsg.c:39)
   by 0x545247F: blobmsg_check_attr_len (blobmsg.c:79)
   by 0x5452710: blobmsg_parse_array (blobmsg.c:159)
   by 0x400AB8: test_blobmsg (tests/test-blobmsg-parse.c:69)
   by 0x400AB8: main (tests/test-blobmsg-parse.c:82)

 Conditional jump or move depends on uninitialised value(s)
   at 0x54524A0: blobmsg_check_name (blobmsg.c:42)
   by 0x54524A0: blobmsg_check_attr_len (blobmsg.c:79)
   by 0x5452710: blobmsg_parse_array (blobmsg.c:159)
   by 0x400AB8: test_blobmsg (tests/test-blobmsg-parse.c:69)
   by 0x400AB8: main (tests/test-blobmsg-parse.c:82)

Ref: http://lists.infradead.org/pipermail/openwrt-devel/2020-January/021204.html
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>tests: fuzz: fuzz _len variants of checking methods</title>
<updated>2019-12-25T09:31:58Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-12-11T05:35:17Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=586ce031eaa0e732603adbc9509aeaca4d6b2769'/>
<id>urn:sha1:586ce031eaa0e732603adbc9509aeaca4d6b2769</id>
<content type='text'>
In order to increase test coverage.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>tests: use blob_parse_untrusted variant</title>
<updated>2019-12-25T09:31:58Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-12-09T13:47:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=325418a7a3c0e22cfbd6726693d780c1afd9d9c6'/>
<id>urn:sha1:325418a7a3c0e22cfbd6726693d780c1afd9d9c6</id>
<content type='text'>
In order to be able to use invalid input for testing as well.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>tests: add libFuzzer based tests</title>
<updated>2019-12-25T09:31:58Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-12-08T14:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=436d6363a10bbb41ab92602b4eb0030992bb1785'/>
<id>urn:sha1:436d6363a10bbb41ab92602b4eb0030992bb1785</id>
<content type='text'>
LibFuzzer is in-process, coverage-guided, evolutionary fuzzing engine.

LibFuzzer is linked with the library under test, and feeds fuzzed inputs
to the library via a specific fuzzing entrypoint (aka "target
function"); the fuzzer then tracks which areas of the code are reached,
and generates mutations on the corpus of input data in order to maximize
the code coverage.

Lets use libFuzzer to fuzz blob and blobmsg parsing for the start.

Ref: https://llvm.org/docs/LibFuzzer.html
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
