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, May 16, 10:59 PM
Unknown Object (File)
Sat, May 16, 12:03 PM
Unknown Object (File)
Wed, May 13, 3:23 PM
Unknown Object (File)
Wed, May 13, 1:59 AM
Unknown Object (File)
Fri, May 8, 3:50 AM
Unknown Object (File)
Thu, May 7, 12:47 PM
Unknown Object (File)
Tue, Apr 28, 6:47 AM
Unknown Object (File)
Apr 19 2026, 3:36 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
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 43057
Build 39945: arc lint + arc unit