<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libubox/tests/cram/inputs, 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-05-24T14:54:37Z</updated>
<entry>
<title>blob: make blob_parse_untrusted more permissive</title>
<updated>2020-05-24T14:54:37Z</updated>
<author>
<name>Matthias Schiffer</name>
</author>
<published>2020-05-16T20:22:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=86818eaa976b0d396c1eabfdce307c33a48c0309'/>
<id>urn:sha1:86818eaa976b0d396c1eabfdce307c33a48c0309</id>
<content type='text'>
Some tools like ucert use concatenations of multiple blobs. Account for
this case by allowing the underlying buffer length to be greater than
the blob length.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</content>
</entry>
<entry>
<title>blobmsg: fix wrong payload len passed from blobmsg_check_array</title>
<updated>2019-12-28T20:17:46Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-12-28T18:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=cd75136b1342e1e9dabf921be13240c6653640ed'/>
<id>urn:sha1:cd75136b1342e1e9dabf921be13240c6653640ed</id>
<content type='text'>
Fix incorrect use of blob_raw_len() on passed blobmsg to
blobmsg_check_array_len()  introduced in commit b0e21553ae8c ("blobmsg:
add _len variants for all attribute checking methods") by using correct
blobmsg_len().

This wrong (higher) length was then for example causing issues in
procd's instance_config_parse_command() where blobmsg_check_attr_list()
was failing sanity checking of service command, thus resulting in the
startup failures of some services like collectd, nlbwmon and samba4.

Ref: http://lists.infradead.org/pipermail/openwrt-devel/2019-December/020840.html
Fixes: b0e21553ae8c ("blobmsg: add _len variants for all attribute checking methods")
Reported-by: Hannu Nyman &lt;hannu.nyman@welho.com&gt;
Tested-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>tests: add test cases for blob parsing</title>
<updated>2019-12-25T09:31:58Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-12-09T12:28:25Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=09ee90f8d6ed1ff997a555aae8ee44ac3e20b317'/>
<id>urn:sha1:09ee90f8d6ed1ff997a555aae8ee44ac3e20b317</id>
<content type='text'>
Increasing test coverage.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>add cram based unit tests</title>
<updated>2019-11-24T12:26:58Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-11-19T13:31:44Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/libubox/commit/?id=b0a5cd8a28bf1d1883317ceac6cb8967d840d6ae'/>
<id>urn:sha1:b0a5cd8a28bf1d1883317ceac6cb8967d840d6ae</id>
<content type='text'>
For improved QA etc. For the start with initial test cases for avl,
base64, jshn and list components. Moved runqueue and blobmsg from
examples to tests.  Converted just a few first test cases from
json-script example into the new cram based unit test, more to come.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
