Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-12-09 16:47:40 +0300
committerPetr Štetiar <ynezz@true.cz>2019-12-25 12:31:58 +0300
commit325418a7a3c0e22cfbd6726693d780c1afd9d9c6 (patch)
tree2e772bdf24303f1a898dd72f01c96a048d5526c3 /tests/test-blob-parse.c
parent0b24e24b93e1f00e7c0907fbe600dd2978bbd388 (diff)
tests: use blob_parse_untrusted variant
In order to be able to use invalid input for testing as well. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'tests/test-blob-parse.c')
-rw-r--r--tests/test-blob-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-blob-parse.c b/tests/test-blob-parse.c
index 6b1fb56..6d65eb4 100644
--- a/tests/test-blob-parse.c
+++ b/tests/test-blob-parse.c
@@ -87,7 +87,7 @@ static int cert_load(const char *certfile, struct list_head *chain)
bufpt = (struct blob_attr *)filebuf;
do {
- pret = blob_parse(bufpt, certtb, cert_policy, CERT_ATTR_MAX);
+ pret = blob_parse_untrusted(bufpt, len, certtb, cert_policy, CERT_ATTR_MAX);
if (pret <= 0)
/* no attributes found */
break;