Page MenuHomeFreeBSD

crypto: Don't assert for empty output buffers.
ClosedPublic

Authored by jhb on Nov 30 2021, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 7:50 AM
Unknown Object (File)
Mon, Dec 2, 7:50 AM
Unknown Object (File)
Mon, Dec 2, 7:50 AM
Unknown Object (File)
Mon, Dec 2, 7:31 AM
Unknown Object (File)
Wed, Nov 27, 2:26 AM
Unknown Object (File)
Mon, Nov 25, 1:21 AM
Unknown Object (File)
Oct 2 2024, 3:55 PM
Unknown Object (File)
Sep 24 2024, 4:08 AM
Subscribers

Details

Summary

It is always valid for crp_payload_output_start to be 0. However, if
an output buffer is empty (e.g. a decryption request with a tag but an
empty payload), the existing assertion failed since 0 is not less than
0.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable