diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-12-09 16:11:45 +0300 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-12-25 12:31:58 +0300 |
commit | 0b24e24b93e1f00e7c0907fbe600dd2978bbd388 (patch) | |
tree | eed8d48303df08cfdf2eae9e68291981004d7f9d /tests/test-blob-parse.c | |
parent | 6d27336e4a8b6e7ab7628509101beb16fcc08bba (diff) |
blob: introduce blob_parse_untrusted
blob_parse can be only used on trusted input as it has no possibility to
check the length of the provided input buffer, which might lead to
undefined behaviour and/or crashes when supplied with malformed,
corrupted or otherwise specially crafted input.
So this introduces blob_parse_untrusted variant which expects additional
input buffer length argument and thus should be able to process also
inputs from untrusted sources.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'tests/test-blob-parse.c')
0 files changed, 0 insertions, 0 deletions