mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 12:39:28 +00:00
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.
25 lines
657 B
C
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;
|
|
}
|