Closed smittals2 closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 78.42%. Comparing base (
697b277
) to head (1ec6c34
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description of changes:
BIO_gets takes a len/size parameter which is of type int and can be negative. Previously, this param was passed into callback_ex without a check for len being positive. This is an issue since callback_ex defines this size/len param as a size_t var. Passing in a negative number to size_t could lead to unexpected behavior. A similar issue exists in BIO_read and BIO_write
This PR moves the check for len to before calling the callback and updates documentation for BIO_gets, BIO_read, and BIO_write.