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)
Sat, Nov 29, 12:34 AM
Unknown Object (File)
Sun, Nov 23, 9:15 PM
Unknown Object (File)
Sat, Nov 22, 4:09 AM
Unknown Object (File)
Nov 8 2025, 7:34 AM
Unknown Object (File)
Oct 25 2025, 8:42 PM
Unknown Object (File)
Oct 15 2025, 3:51 AM
Unknown Object (File)
Oct 15 2025, 3:51 AM
Unknown Object (File)
Oct 15 2025, 3:51 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
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 43057
Build 39945: arc lint + arc unit