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)
Tue, Jun 9, 9:17 PM
Unknown Object (File)
Fri, May 29, 10:35 PM
Unknown Object (File)
May 16 2026, 10:59 PM
Unknown Object (File)
May 16 2026, 12:03 PM
Unknown Object (File)
May 13 2026, 3:23 PM
Unknown Object (File)
May 13 2026, 1:59 AM
Unknown Object (File)
May 8 2026, 3:50 AM
Unknown Object (File)
May 7 2026, 12:47 PM
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