Files
Open_Ultra_SAST/benchmarks/pairs/vfc/openssl-cve-2024-4741-ssl_free_buffers/fixed.c
T
Marius Ciepluch 0116f9bea6 feat(real-world-vfc-slice): add labeled OpenSSL/Firefox/Chromium/curl pair corpus
Harvest 176 isolated vuln-vs-fix functions (109 CVEs, 352 training rows)
into benchmarks/pairs/vfc with provenance and a JSONL training manifest.
Score the slice as an honesty dashboard (ousast pairs --slice vfc);
keep the pair gate on the local fixtures only.
2026-09-04 16:45:38 +02:00

25 lines
657 B
C

/* Provenance: openssl/openssl SSL_free_buffers (fixed).
* repo: openssl/openssl
* commit: b3f0eb0a295f58f16ba43ba99dad70d4ee5c437d
* parent: ec559c2a6cca3fd4cedae5c47f2dfa38e5e24865
* commit_url: https://github.com/openssl/openssl/commit/b3f0eb0a295f58f16ba43ba99dad70d4ee5c437d
* cve: CVE-2024-4741
* license: Apache-2.0
* function: SSL_free_buffers
* relpath: ssl/ssl_lib.c
*/
int SSL_free_buffers(SSL *ssl)
{
RECORD_LAYER *rl = &ssl->rlayer;
if (RECORD_LAYER_read_pending(rl) || RECORD_LAYER_write_pending(rl))
return 0;
if (RECORD_LAYER_data_present(rl))
return 0;
RECORD_LAYER_release(rl);
return 1;
}