← Commit list

9e8b05fb99

Stefan Eissing
Stefan Eissing
2025-09-25
FAILED Duration: 253s

Subject

wolfssl: check BIO read parameters

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/wolfssl.c+5 -2
@@ -362,8 +362,11 @@ static int wssl_bio_cf_in_read(WOLFSSL_BIO *bio, char *buf, int blen)
CURLcode result = CURLE_OK;
DEBUGASSERT(data);
- /* OpenSSL catches this case, so should we. */
- if(!buf)
+ if(!data || (blen < 0)) {
+ wssl->io_result = CURLE_FAILED_INIT;
+ return -1;
+ }
+ if(!buf || !blen)
return 0;
if((connssl->connecting_state == ssl_connect_2) &&