mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-21 05:59:29 +00:00
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.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/* Provenance: openssl/openssl init_sig_algs (fixed).
|
||||
* repo: openssl/openssl
|
||||
* commit: 02b1636fe3db274497304a3e95a4e32ced7e841b
|
||||
* parent: 112580c27b829b0ac0874d5c5787195f27c7952c
|
||||
* commit_url: https://github.com/openssl/openssl/commit/02b1636fe3db274497304a3e95a4e32ced7e841b
|
||||
* cve: CVE-2021-3449
|
||||
* license: OpenSSL License
|
||||
* function: init_sig_algs
|
||||
* relpath: ssl/statem/extensions.c
|
||||
*/
|
||||
|
||||
static int init_sig_algs(SSL *s, unsigned int context)
|
||||
{
|
||||
/* Clear any signature algorithms extension received */
|
||||
OPENSSL_free(s->s3.tmp.peer_sigalgs);
|
||||
s->s3.tmp.peer_sigalgs = NULL;
|
||||
s->s3.tmp.peer_sigalgslen = 0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Provenance: openssl/openssl init_sig_algs (vuln).
|
||||
* repo: openssl/openssl
|
||||
* commit: 112580c27b829b0ac0874d5c5787195f27c7952c
|
||||
* parent: 112580c27b829b0ac0874d5c5787195f27c7952c
|
||||
* commit_url: https://github.com/openssl/openssl/commit/02b1636fe3db274497304a3e95a4e32ced7e841b
|
||||
* cve: CVE-2021-3449
|
||||
* license: OpenSSL License
|
||||
* function: init_sig_algs
|
||||
* relpath: ssl/statem/extensions.c
|
||||
*/
|
||||
|
||||
static int init_sig_algs(SSL *s, unsigned int context)
|
||||
{
|
||||
/* Clear any signature algorithms extension received */
|
||||
OPENSSL_free(s->s3.tmp.peer_sigalgs);
|
||||
s->s3.tmp.peer_sigalgs = NULL;
|
||||
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user