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, Apr 30, 2:10 PM
Unknown Object (File)
Tue, Apr 30, 2:09 PM
Unknown Object (File)
Tue, Apr 30, 2:09 PM
Unknown Object (File)
Tue, Apr 30, 7:56 AM
Unknown Object (File)
Apr 8 2024, 10:28 AM
Unknown Object (File)
Feb 11 2024, 5:29 AM
Unknown Object (File)
Feb 1 2024, 7:57 AM
Unknown Object (File)
Jan 17 2024, 7:29 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