mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-17 12:09:27 +00:00
Tasks 1.1, 5.1, 5.2, 5.4 and the data half of 5.3. - mechanisms.toml: closed vocabulary v1 (20 ids) every expected row cites. - vibe-py: 35 Real-Vuln-Benchmark pairs (Apache-2.0), human provenance only because the LLM-generated repositories carry no license (escalated). - vfc-js: 17 Node fix-commit pairs harvested upstream (MIT/Apache-2.0), SecBench.js itself is not vendored (no license); sinks derived on 13/17. - agent-vfc: 29 agent-trailer fixes as catalog-candidates.toml plus REVIEW.md; the loaded catalog stays empty until a human reviews them. - datasets.toml and README document every slice and its review status. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01T7XD7x5KonMdmGRkp63EQG
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
// Provenance: vvo/node-whereis (fixed).
|
|
// repo: vvo/node-whereis
|
|
// commit: 0f64e3780235004fb6e43bfd153ea3e0e210ee2b
|
|
// parent: b8b642b1163baa37f15ed49b4064dcbdb6e1876c
|
|
// commit_url: https://github.com/vvo/node-whereis/commit/0f64e3780235004fb6e43bfd153ea3e0e210ee2b
|
|
// cve: CVE-2018-3772
|
|
// license: MIT
|
|
// function: whereis
|
|
// relpath: index.js
|
|
// provenance: human
|
|
// mechanism: source_reaches_sink
|
|
// upstream_start: 3
|
|
|
|
module.exports = function whereis(name, cb) {
|
|
cp.execFile('which', [name], function(error, stdout, stderr) {
|
|
stdout = stdout.split('\n')[0];
|
|
if (error || stderr || stdout === '' || stdout.charAt(0) !== '/') {
|
|
stdout = stdout.split('\n')[0];
|
|
cp.execFile('whereis', [name], function(error, stdout, stderr) {
|
|
if (error || stderr || stdout === '' || stdout.indexOf( '/' ) === -1) {
|
|
cp.execFile('where', [name], function (error, stdout, stderr) { //windows
|
|
if (error || stderr || stdout === '' || stdout.indexOf('\\') === -1) {
|
|
cp.exec('for %i in (' + name + '.exe) do @echo. %~$PATH:i', function (error, stdout, stderr) { //windows xp
|
|
if (error || stderr || stdout === '' || stdout.indexOf('\\') === -1) {
|
|
return cb(new Error('Could not find ' + name + ' on your system'));
|
|
}
|
|
return cb(null, stdout);
|
|
});
|
|
} else {
|
|
return cb(null, stdout);
|
|
}
|
|
});
|
|
}
|
|
else {
|
|
return cb(null, stdout.split(' ')[1]);
|
|
}
|
|
});
|
|
} else {
|
|
return cb(null, stdout);
|
|
}
|
|
});
|
|
};
|