blob: make blob_parse_untrusted more permissive
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 16 May 2020 20:22:10 +0000 (22:22 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 24 May 2020 14:54:37 +0000 (16:54 +0200)
commit86818eaa976b0d396c1eabfdce307c33a48c0309
tree90d59295ea874cc214583ec757e7d21f12ee953e
parent5e75160f48785464f9213c6bc8c72b9372c5318b
blob: make blob_parse_untrusted more permissive

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 <mschiffer@universe-factory.net>
blob.c
tests/cram/inputs/signature.ucert [new file with mode: 0644]
tests/cram/test_blob_parse.t