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)
Sun, Feb 8, 3:00 PM
Unknown Object (File)
Sun, Feb 8, 7:16 AM
Unknown Object (File)
Sat, Jan 31, 2:43 PM
Unknown Object (File)
Nov 29 2025, 12:34 AM
Unknown Object (File)
Nov 23 2025, 9:15 PM
Unknown Object (File)
Nov 22 2025, 4:09 AM
Unknown Object (File)
Nov 8 2025, 7:34 AM
Unknown Object (File)
Oct 25 2025, 8:42 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