sample_id
stringlengths
27
31
vuln_id
stringlengths
9
9
crate_name
stringclasses
25 values
granularity
stringclasses
3 values
year
int64
2.02k
2.03k
is_vulnerable
bool
2 classes
cwe_type
listlengths
0
3
vulnerable_functions
listlengths
0
4
vulnerable_lines
listlengths
0
4
files
listlengths
2
56
vuln-0001/sample-00001-function
vuln-0001
chttp
function
2,019
true
[ "CWE-416" ]
[ { "file": "src/lib.rs", "functions": [ "fn from(buffer: Buffer) -> Vec<u8>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 95 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00001-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use std::mem;\nuse std::slice;\n\n/// Growable byte buffer implemented as a ring buffer.\n///\n/// Optimized for re...
vuln-0001/sample-00001-file
vuln-0001
chttp
file
2,019
true
[ "CWE-416" ]
[ { "file": "src/buffer.rs", "functions": [ "fn from(buffer: Buffer) -> Vec<u8>" ] } ]
[ { "file": "src/buffer.rs", "lines": [ 195 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00001-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/buffer.rs", "content": "use std::io::{self, Read, Write};\nuse std::mem;\nuse std::slice;\n\n/// Macro for making memory copies more readabl...
vuln-0001/sample-00001-crate
vuln-0001
chttp
crate
2,019
true
[ "CWE-416" ]
[ { "file": "src/buffer.rs", "functions": [ "fn from(buffer: Buffer) -> Vec<u8>" ] } ]
[ { "file": "src/buffer.rs", "lines": [ 195 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00001-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ncurl = \"0.4\"\nhttp = \"0.1.1\"\n\n[dependencies.json]\nversion = \"0.11\"\noptional = true\n" }, { "path": "src/body.rs", "content": "use crate::error::Error...
vuln-0001/sample-10001-function
vuln-0001
chttp
function
2,019
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10001-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use std::mem;\nuse std::slice;\n\n/// Growable byte buffer implemented as a ring buffer.\n///\n/// Optimized for re...
vuln-0001/sample-10001-file
vuln-0001
chttp
file
2,019
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10001-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/buffer.rs", "content": "use std::io::{self, Read, Write};\nuse std::mem;\nuse std::slice;\n\n/// Macro for making memory copies more readabl...
vuln-0001/sample-10001-crate
vuln-0001
chttp
crate
2,019
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10001-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ncurl = \"0.4\"\nhttp = \"0.1.1\"\n\n[dependencies.json]\nversion = \"0.11\"\noptional = true\n" }, { "path": "src/body.rs", "content": "use crate::error::Error...
vuln-0002/sample-00002-crate
vuln-0002
arc-swap
crate
2,020
true
[ "CWE-416" ]
[ { "file": "src/access.rs", "functions": [ "fn deref(&self) -> &T", "fn load(&self) -> Self::Guard", "impl<T: Clone> Access<T> for Constant<T>" ] } ]
[ { "file": "src/access.rs", "lines": [ 240, 287 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00002-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n\n[features]\n# Enable some more, experimental strategies.\n# **These are not part of the stability guarantees** and may be changed, renamed\n# or removed at any time.\nexperimental-strat...
vuln-0002/sample-00002-file
vuln-0002
arc-swap
file
2,020
true
[ "CWE-416" ]
[ { "file": "src/access.rs", "functions": [ "fn deref(&self) -> &T", "fn load(&self) -> Self::Guard", "impl<T: Clone> Access<T> for Constant<T>" ] } ]
[ { "file": "src/access.rs", "lines": [ 240, 287 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00002-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n\n[dependencies]\n\n[dev-dependencies]\ncriterion = \"~0.3\"\ncrossbeam-utils = \"~0.7\"\nitertools = \"~0.9\"\nnum_cpus = \"~1\"\nonce_cell = \"~1\"\nparking_lot = \"~0.11\"\nproptest = \...
vuln-0002/sample-00002-function
vuln-0002
arc-swap
function
2,020
true
[ "CWE-416" ]
[ { "file": "src/lib.rs", "functions": [ "fn deref(&self) -> &T", "fn load(&self) -> Self::Guard", "impl<T: Clone> Access<T> for Constant<T>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 19, 51 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00002-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use std::marker::PhantomData;\nuse std::ops::Deref;\n\n/// Abstracts over ways code can get access to a value of ty...
vuln-0002/sample-10002-crate
vuln-0002
arc-swap
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10002-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n\n[features]\n# Enable some more, experimental strategies.\n# **These are not part of the stability guarantees** and may be changed, renamed\n# or removed at any time.\nexperimental-strat...
vuln-0002/sample-10002-file
vuln-0002
arc-swap
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10002-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n\n[dependencies]\n\n[dev-dependencies]\ncriterion = \"~0.3\"\ncrossbeam-utils = \"~0.7\"\nitertools = \"~0.9\"\nnum_cpus = \"~1\"\nonce_cell = \"~1\"\nparking_lot = \"~0.11\"\nproptest = \...
vuln-0002/sample-10002-function
vuln-0002
arc-swap
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10002-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "#![deny(unsafe_code)]\n\nuse std::marker::PhantomData;\nuse std::ops::Deref;\n\n/// Abstracts over ways code can ge...
vuln-0003/sample-00003-crate
vuln-0003
safe-transmute
crate
2,018
true
[ "CWE-119" ]
[ { "file": "src/lib.rs", "functions": [ "pub unsafe fn guarded_transmute_vec_permissive<T>(mut bytes: Vec<u8>) -> Vec<T>" ] }, { "file": "src/to_bytes.rs", "functions": [ "pub unsafe fn guarded_transmute_to_bytes_vec<T>(mut from: Vec<T>) -> Vec<u8>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 317 ] }, { "file": "src/to_bytes.rs", "lines": [ 234 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00003-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n\n[features]\ndefault = [\"std\"]\n\"std\" = []\n\"test-unaligned\" = []\n" }, { "path": "src/bool.rs", "content": "//! Functions for safe transmutation to `bo...
vuln-0003/sample-00003-file
vuln-0003
safe-transmute
file
2,018
true
[ "CWE-119" ]
[ { "file": "src/lib.rs", "functions": [ "pub unsafe fn guarded_transmute_vec_permissive<T>(mut bytes: Vec<u8>) -> Vec<T>" ] }, { "file": "src/to_bytes.rs", "functions": [ "pub unsafe fn guarded_transmute_to_bytes_vec<T>(mut from: Vec<T>) -> Vec<u8>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 310 ] }, { "file": "src/to_bytes.rs", "lines": [ 234 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00003-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n\n[features]\ndefault = [\"std\"]\n\"std\" = []\n\"test-unaligned\" = []\n" }, { "path": "src/error.rs", "content": "#[cfg(feature = \"std\")]\nuse std::error::...
vuln-0003/sample-00003-function
vuln-0003
safe-transmute
function
2,018
true
[ "CWE-119" ]
[ { "file": "src/lib.rs", "functions": [ "pub unsafe fn guarded_transmute_to_bytes_vec<T>(mut from: Vec<T>) -> Vec<u8>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 9 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00003-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use core::mem::forget;\nuse core::mem::size_of;\n\npub unsafe fn guarded_transmute_to_bytes_vec<T>(mut from: Vec<T>...
vuln-0003/sample-10003-crate
vuln-0003
safe-transmute
crate
2,018
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10003-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n\n\n[features]\ndefault = [\"std\"]\n\"std\" = []\n\"test-unaligned\" = []\n" }, { "path": "src/bool.rs", "content": "//! Functions for safe transmutation to `...
vuln-0003/sample-10003-file
vuln-0003
safe-transmute
file
2,018
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10003-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n\n[features]\ndefault = [\"std\"]\n\"std\" = []\n\"test-unaligned\" = []\n\n" }, { "path": "src/error.rs", "content": "#[cfg(feature = \"std\")]\nuse std::error...
vuln-0003/sample-10003-function
vuln-0003
safe-transmute
function
2,018
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10003-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use core::mem::forget;\nuse core::mem::size_of;\n\npub unsafe fn guarded_transmute_to_bytes_vec<T>(mut from: Vec<T>...
vuln-0004/sample-00004-crate
vuln-0004
ordnung
crate
2,020
true
[ "CWE-415" ]
[ { "file": "src/compact.rs", "functions": [ "fn remove(&mut self, index: usize) -> T", "fn with<'a, R: 'a, F: FnOnce(&mut StdVec<T>) -> R>(&mut self, f: F) -> R" ] } ]
[ { "file": "src/compact.rs", "lines": [ 110, 144 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00004-crate\"\nversion = \"0.0.1\"\nedition = \"2018\"\n\n[dependencies]\nahash = \"0.3.2\"\n\n[dev-dependencies]\nfnv = \"1.0.6\"\nrustc-hash = \"1.0\"\n" }, { "path": "src/compact.rs", "content": "//! This is meant to be API compat...
vuln-0004/sample-00004-file
vuln-0004
ordnung
file
2,020
true
[ "CWE-415" ]
[ { "file": "src/compact.rs", "functions": [ "fn remove(&mut self, index: usize) -> T", "fn with<'a, R: 'a, F: FnOnce(&mut StdVec<T>) -> R>(&mut self, f: F) -> R" ] } ]
[ { "file": "src/compact.rs", "lines": [ 110, 144 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00004-file\"\nversion = \"0.0.1\"\nedition = \"2018\"\n\n[dependencies]\nahash = \"0.3.2\"\n\n[dev-dependencies]\nfnv = \"1.0.6\"\nrustc-hash = \"1.0\"\n" }, { "path": "src/compact.rs", "content": "//! This is meant to be API compati...
vuln-0004/sample-00004-function
vuln-0004
ordnung
function
2,020
true
[ "CWE-415" ]
[ { "file": "src/lib.rs", "functions": [ "fn remove(&mut self, index: usize) -> T", "fn with<'a, R: 'a, F: FnOnce(&mut StdVec<T>) -> R>(&mut self, f: F) -> R" ] } ]
[ { "file": "src/lib.rs", "lines": [ 20, 47 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00004-function\"\nversion = \"0.0.1\"\nedition = \"2018\"\n\n[dependencies]\nahash = \"0.3.2\"\n\n[dev-dependencies]\nfnv = \"1.0.6\"\nrustc-hash = \"1.0\"\n" }, { "path": "src/lib.rs", "content": "#![cfg_attr(not(test), no_std)]\nex...
vuln-0005/sample-00005-function
vuln-0005
image
function
2,020
true
[ "CWE-400" ]
[ { "file": "src/lib.rs", "functions": [ "fn from_slice_mut(slice: &mut [T]) -> &mut $ident<T>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 24 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00005-function\"\nversion = \"0.1.0\"\nedition = \"2021\"" }, { "path": "src/lib.rs", "content": "macro_rules! define_colors {\n {$(\n $ident:ident,\n $channels: expr,\n $alphas: expr,\n $interpretation...
vuln-0005/sample-00005-file
vuln-0005
image
file
2,020
true
[ "CWE-400" ]
[ { "file": "src/color.rs", "functions": [ "fn from_slice_mut(slice: &mut [T]) -> &mut $ident<T>" ] } ]
[ { "file": "src/color.rs", "lines": [ 256 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00005-file\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[dependencies]\nbytemuck = \"1\"\nbyteorder = \"1.3.2\"\nnum-iter = \"0.1.32\"\nnum-rational = { version = \"0.3\", default-features = false }\nnum-traits = \"0.2.0\"\ngif = { version = \"...
vuln-0005/sample-00005-crate
vuln-0005
image
crate
2,020
true
[ "CWE-400" ]
[ { "file": "src/color.rs", "functions": [ "fn from_slice_mut(slice: &mut [T]) -> &mut $ident<T>" ] } ]
[ { "file": "src/color.rs", "lines": [ 256 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00005-crate\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[dependencies]\nbytemuck = \"1\"\nbyteorder = \"1.3.2\"\nnum-iter = \"0.1.32\"\nnum-rational = { version = \"0.3\", default-features = false }\nnum-traits = \"0.2.0\"\ngif = { version = \...
vuln-0005/sample-10005-function
vuln-0005
image
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10005-function\"\nversion = \"0.1.0\"\nedition = \"2021\"" }, { "path": "src/lib.rs", "content": "macro_rules! define_colors {\n {$(\n $ident:ident,\n $channels: expr,\n $alphas: expr,\n $interpretation...
vuln-0005/sample-10005-file
vuln-0005
image
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10005-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n\n[dependencies]\nbytemuck = \"1\"\nbyteorder = \"1.3.2\"\nnum-iter = \"0.1.32\"\nnum-rational = { version = \"0.3\", default-features = false }\nnum-traits = \"0.2.0\"\ngif = { version = ...
vuln-0005/sample-10005-crate
vuln-0005
image
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10005-crate\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[dependencies]\nbytemuck = \"1\"\nbyteorder = \"1.3.2\"\nnum-iter = \"0.1.32\"\nnum-rational = { version = \"0.3\", default-features = false }\nnum-traits = \"0.2.0\"\ngif = { version = \...
vuln-0006/sample-00006-crate
vuln-0006
smallvec
crate
2,021
true
[ "CWE-787" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn insert_many<I: IntoIterator<Item = A::Item>>(&mut self, index: usize, iterable: I)" ] } ]
[ { "file": "src/lib.rs", "lines": [ 1032, 1044 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00006-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nconst_generics = []\nwrite = []\nunion = []\nspecialization = []\nmay_dangle = []\n\n[dependencies]\nserde = { version = \"1\", optional = true, default-features = false }\n\n...
vuln-0006/sample-00006-file
vuln-0006
smallvec
file
2,021
true
[ "CWE-787" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn insert_many<I: IntoIterator<Item = A::Item>>(&mut self, index: usize, iterable: I)" ] } ]
[ { "file": "src/lib.rs", "lines": [ 1029, 1041 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00006-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nconst_generics = []\nwrite = []\nunion = []\nspecialization = []\nmay_dangle = []\n\n[dependencies]\nserde = { version = \"1\", optional = true, default-features = false }\n\n[...
vuln-0006/sample-00006-function
vuln-0006
smallvec
function
2,021
true
[ "CWE-787" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn insert_many<I: IntoIterator<Item = A::Item>>(&mut self, index: usize, iterable: I)" ] } ]
[ { "file": "src/lib.rs", "lines": [ 355, 367 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00006-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "#![no_std]\n\n#[doc(hidden)]\npub extern crate alloc;\n\n#[allow(deprecated)]\nuse alloc::alloc::{Layout, LayoutErr...
vuln-0006/sample-10006-crate
vuln-0006
smallvec
crate
2,021
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10006-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nconst_generics = []\nwrite = []\nunion = []\nspecialization = []\nmay_dangle = []\n\n[dependencies]\nserde = { version = \"1\", optional = true, default-features = false }\n\n...
vuln-0006/sample-10006-file
vuln-0006
smallvec
file
2,021
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10006-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nconst_generics = []\nwrite = []\nunion = []\nspecialization = []\nmay_dangle = []\n\n[dependencies]\nserde = { version = \"1\", optional = true, default-features = false }\n\n[...
vuln-0006/sample-10006-function
vuln-0006
smallvec
function
2,021
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10006-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "#![no_std]\n\n#[doc(hidden)]\npub extern crate alloc;\n\n#[allow(deprecated)]\nuse alloc::alloc::{Layout, LayoutErr...
vuln-0007/sample-00007-crate
vuln-0007
ordnung
crate
2,020
true
[ "CWE-125" ]
[ { "file": "src/compact.rs", "functions": [ "fn with_capacity(capacity: usize) -> Self", "fn push(&mut self, val: T)", "fn parts(&self) -> (usize, usize)", "fn clear(&mut self)", "fn capacity(&self) -> usize", "unsafe fn set_len(&mut self, len: usize)", "fn remove(&m...
[ { "file": "src/compact.rs", "lines": [ 36, 48, 54, 72, 90, 102, 110, 127, 136, 142, 161, 187, 204, 213, 281, 282, 286, 297 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00007-crate\"\nversion = \"0.0.1\"\nedition = \"2018\"\n\n[dependencies]\nahash = \"0.3.2\"\n\n[dev-dependencies]\nfnv = \"1.0.6\"\nrustc-hash = \"1.0\"\n" }, { "path": "src/compact.rs", "content": "//! This is meant to be API compat...
vuln-0007/sample-00007-file
vuln-0007
ordnung
file
2,020
true
[ "CWE-125" ]
[ { "file": "src/compact.rs", "functions": [ "fn with_capacity(capacity: usize) -> Self", "fn push(&mut self, val: T)", "fn parts(&self) -> (usize, usize)", "fn clear(&mut self)", "fn capacity(&self) -> usize", "unsafe fn set_len(&mut self, len: usize)", "fn remove(&m...
[ { "file": "src/compact.rs", "lines": [ 36, 48, 54, 72, 90, 102, 110, 127, 136, 142, 161, 187, 204, 213, 281, 282, 286, 297 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00007-file\"\nversion = \"0.0.1\"\nedition = \"2018\"\n\n[dependencies]\nahash = \"0.3.2\"\n\n[dev-dependencies]\nfnv = \"1.0.6\"\nrustc-hash = \"1.0\"\n" }, { "path": "src/compact.rs", "content": "//! This is meant to be API compati...
vuln-0007/sample-00007-function
vuln-0007
ordnung
function
2,020
true
[ "CWE-125" ]
[ { "file": "src/lib.rs", "functions": [ "fn with_capacity(capacity: usize) -> Self", "fn push(&mut self, val: T)", "fn parts(&self) -> (usize, usize)", "fn clear(&mut self)", "fn capacity(&self) -> usize", "unsafe fn set_len(&mut self, len: usize)", "fn remove(&mut s...
[ { "file": "src/lib.rs", "lines": [ 21, 33, 39, 57, 66, 71, 79, 96, 105, 111, 130, 141, 158, 167, 173, 174, 178, 189 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00007-function\"\nversion = \"0.0.1\"\nedition = \"2018\"\n\n[dependencies]\nahash = \"0.3.2\"\n\n[dev-dependencies]\nfnv = \"1.0.6\"\nrustc-hash = \"1.0\"\n" }, { "path": "src/lib.rs", "content": "#![cfg_attr(not(test), no_std)]\nex...
vuln-0008/sample-00008-crate
vuln-0008
magnetic
crate
2,020
true
[ "CWE-362" ]
[ { "file": "src/mpmc.rs", "functions": [ "unsafe impl<T, B: Buffer<T>> Send for MPMCConsumer<T, B> {}", "unsafe impl<T, B: Buffer<T>> Sync for MPMCConsumer<T, B> {}", "unsafe impl<T, B: Buffer<T>> Send for MPMCProducer<T, B> {}", "unsafe impl<T, B: Buffer<T>> Sync for MPMCProducer<T, ...
[ { "file": "src/mpmc.rs", "lines": [ 37, 38, 45, 46 ] }, { "file": "src/mpsc.rs", "lines": [ 37, 44, 45 ] }, { "file": "src/spmc.rs", "lines": [ 37, 38, 45, 46 ] }, { "file": "src/spsc.rs", "line...
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00008-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nunstable = []\n" }, { "path": "src/buffer/dynamic.rs", "content": "//! Buffer which is allocated at run time\n\nuse super::Buffer;\nuse crate::util::{alloc, deallo...
vuln-0008/sample-00008-function
vuln-0008
magnetic
function
2,020
true
[ "CWE-362" ]
[ { "file": "src/mpmc.rs", "functions": [ "unsafe impl<T, B: Buffer<T>> Send for MPMCConsumer<T, B> {}", "unsafe impl<T, B: Buffer<T>> Sync for MPMCConsumer<T, B> {}", "unsafe impl<T, B: Buffer<T>> Send for MPMCProducer<T, B> {}", "unsafe impl<T, B: Buffer<T>> Sync for MPMCProducer<T, ...
[ { "file": "src/mpmc.rs", "lines": [ 37, 38, 45, 46 ] }, { "file": "src/mpsc.rs", "lines": [ 37, 44, 45 ] }, { "file": "src/spmc.rs", "lines": [ 37, 38, 45, 46 ] }, { "file": "src/spsc.rs", "line...
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00008-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nunstable = []\n" }, { "path": "src/buffer/dynamic.rs", "content": "//! Buffer which is allocated at run time\n\nuse super::Buffer;\nuse crate::util::{alloc, dea...
vuln-0008/sample-10008-function
vuln-0008
magnetic
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10008-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nunstable = []\n" }, { "path": "src/lib.rs", "content": "" }, { "path": "src/mpmc.rs", "content": "unsafe impl<T: Send, B: Buffer<T>> Send for MPMCCo...
vuln-0008/sample-10008-crate
vuln-0008
magnetic
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10008-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\nunstable = []\n" }, { "path": "src/buffer/dynamic.rs", "content": "//! Buffer which is allocated at run time\n\nuse super::Buffer;\nuse crate::util::{alloc, deallo...
vuln-0009/sample-00009-crate
vuln-0009
alg_ds
crate
2,020
true
[ "CWE-908" ]
[ { "file": "src/ds/matrix.rs", "functions": [ "fn alloc(rows: usize, cols: usize) -> &'a mut [T]", "fn fill_with(buf: &mut [T], value: T)" ] } ]
[ { "file": "src/ds/matrix.rs", "lines": [ 101, 110 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00009-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/alg/lcs.rs", "content": "use crate::ds::matrix::Matrix;\n\n/// Returns length of the longest common subsequence of sequences `a` and `b`.\n...
vuln-0009/sample-00009-file
vuln-0009
alg_ds
file
2,020
true
[ "CWE-908" ]
[ { "file": "src/ds/matrix.rs", "functions": [ "fn alloc(rows: usize, cols: usize) -> &'a mut [T]", "fn fill_with(buf: &mut [T], value: T)" ] } ]
[ { "file": "src/ds/matrix.rs", "lines": [ 101, 110 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00009-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/ds/matrix.rs", "content": "use std::ops::{Index, IndexMut};\nuse std::slice::{Iter, IterMut};\nuse std::{alloc, fmt, mem, ops};\n\n/// Recta...
vuln-0009/sample-00009-function
vuln-0009
alg_ds
function
2,020
true
[ "CWE-908" ]
[ { "file": "src/lib.rs", "functions": [ "fn alloc(rows: usize, cols: usize) -> &'a mut [T]", "fn fill_with(buf: &mut [T], value: T)" ] } ]
[ { "file": "src/lib.rs", "lines": [ 21, 30 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00009-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use std::{alloc, mem};\n\npub struct Matrix<'a, T>\nwhere\n T: Default + Clone,\n{\n cols: usize,\n buffer...
vuln-0010/sample-00010-crate
vuln-0010
im
crate
2,020
true
[ "CWE-362" ]
[ { "file": "src/vector/focus.rs", "functions": [ "unsafe impl<A> Send for TreeFocus<A>", "unsafe impl<A> Sync for TreeFocus<A>" ] } ]
[ { "file": "src/vector/focus.rs", "lines": [ 281, 284 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00010-crate\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[lib]\npath = \"./src/lib.rs\"\n\n[build-dependencies]\nversion_check = \"0.9\"\n\n[features]\ndebug = []\n\n[dependencies]\ntypenum = \"1.12\"\nbitmaps = \"2\"\nsized-chunks = \"0.6.4\"\...
vuln-0010/sample-00010-file
vuln-0010
im
file
2,020
true
[ "CWE-362" ]
[ { "file": "src/vector/focus.rs", "functions": [ "unsafe impl<A> Send for TreeFocus<A>", "unsafe impl<A> Sync for TreeFocus<A>" ] } ]
[ { "file": "src/vector/focus.rs", "lines": [ 281, 284 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00010-file\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[lib]\npath = \"./src/lib.rs\"\n\n[build-dependencies]\nversion_check = \"0.9\"\n\n[features]\ndebug = []\n\n[dependencies]\ntypenum = \"1.12\"\nbitmaps = \"2\"\nsized-chunks = \"0.6.4\"\n...
vuln-0010/sample-00010-function
vuln-0010
im
function
2,020
true
[ "CWE-362" ]
[ { "file": "src/lib.rs", "functions": [ "unsafe impl<A> Send for TreeFocus<A>", "unsafe impl<A> Sync for TreeFocus<A>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 65, 68 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00010-function\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[lib]\npath = \"./src/lib.rs\"\n\n[build-dependencies]\nversion_check = \"0.9\"\n\n[features]\ndebug = []\n\n[dependencies]\ntypenum = \"1.12\"\nbitmaps = \"2\"\nsized-chunks = \"0.6.4...
vuln-0010/sample-10010-crate
vuln-0010
im
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10010-crate\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[lib]\npath = \"./src/lib.rs\"\n\n[build-dependencies]\nversion_check = \"0.9\"\n\n[features]\ndebug = []\n\n[dependencies]\ntypenum = \"1.12\"\nbitmaps = \"2\"\nsized-chunks = \"0.6.4\"\...
vuln-0010/sample-10010-file
vuln-0010
im
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10010-file\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[lib]\npath = \"./src/lib.rs\"\n\n[build-dependencies]\nversion_check = \"0.9\"\n\n[features]\ndebug = []\n\n[dependencies]\ntypenum = \"1.12\"\nbitmaps = \"2\"\nsized-chunks = \"0.6.4\"\n...
vuln-0010/sample-10010-function
vuln-0010
im
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10010-function\"\nversion = \"0.1.0\"\nedition = \"2018\"\n\n[lib]\npath = \"./src/lib.rs\"\n\n[build-dependencies]\nversion_check = \"0.9\"\n\n[features]\ndebug = []\n\n[dependencies]\ntypenum = \"1.12\"\nbitmaps = \"2\"\nsized-chunks = \"0.6.4...
vuln-0011/sample-00011-crate
vuln-0011
array-init-cursor
crate
2,025
true
[ "CWE-672" ]
[ { "file": "src/lib.rs", "functions": [ "fn write_impl(&mut self, value: [T; N])" ] } ]
[ { "file": "src/lib.rs", "lines": [ 31 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00011-crate\"\nversion = \"0.2.0\"\n" }, { "path": "src/lib.rs", "content": "//! Small crate for initializing an uninitialized slice\n#![no_std]\n\nuse core::mem::MaybeUninit;\n\nmod util;\n\n/// A fixed-size cursor for initializing ...
vuln-0011/sample-00011-function
vuln-0011
array-init-cursor
function
2,025
true
[ "CWE-672" ]
[ { "file": "src/lib.rs", "functions": [ "fn write_impl(&mut self, value: [T; N])" ] } ]
[ { "file": "src/lib.rs", "lines": [ 64 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00011-function\"\nversion = \"0.2.0\"\n" }, { "path": "src/lib.rs", "content": "//! Small crate for initializing an uninitialized slice\n#![no_std]\n\nuse core::mem::MaybeUninit;\n\n#[repr(C)]\nstruct Wrapper<T, const Y: usize, const...
vuln-0011/sample-10011-crate
vuln-0011
array-init-cursor
crate
2,025
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10011-crate\"\nversion = \"0.2.1\"\n" }, { "path": "src/lib.rs", "content": "//! Small crate for initializing an uninitialized slice\n#![no_std]\n\nuse core::mem::MaybeUninit;\n\nmod util;\n\n/// A fixed-size cursor for initializing ...
vuln-0011/sample-10011-function
vuln-0011
array-init-cursor
function
2,025
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10011-function\"\nversion = \"0.2.1\"\n" }, { "path": "src/lib.rs", "content": "//! Small crate for initializing an uninitialized slice\n#![no_std]\n\nuse core::mem::MaybeUninit;\n\n#[repr(C)]\nstruct Wrapper<T, const Y: usize, const...
vuln-0012/sample-00012-crate
vuln-0012
hashconsing
crate
2,020
true
[ "CWE-662", "CWE-787" ]
[ { "file": "src/lib.rs", "functions": [ "unsafe impl<T> Sync for HConsed<T> {}", "unsafe impl<T> Send for HConsed<T> {}" ] } ]
[ { "file": "src/lib.rs", "lines": [ 354, 355 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00012-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nlazy_static=\"1.*\"\n" }, { "path": "src/coll.rs", "content": "//! Efficient collections for hashconsed data.\n//!\n//! This module provide hash set and hash m...
vuln-0012/sample-00012-file
vuln-0012
hashconsing
file
2,020
true
[ "CWE-662", "CWE-787" ]
[ { "file": "src/lib.rs", "functions": [ "unsafe impl<T> Sync for HConsed<T> {}", "unsafe impl<T> Send for HConsed<T> {}" ] } ]
[ { "file": "src/lib.rs", "lines": [ 352, 353 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00012-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nlazy_static=\"1.*\"\n" }, { "path": "src/lib.rs", "content": "// See the LICENSE files at the top-level directory of this distribution.\n//\n// Licensed under t...
vuln-0012/sample-00012-function
vuln-0012
hashconsing
function
2,020
true
[ "CWE-662", "CWE-787" ]
[ { "file": "src/lib.rs", "functions": [ "unsafe impl<T> Sync for HConsed<T> {}", "unsafe impl<T> Send for HConsed<T> {}" ] } ]
[ { "file": "src/lib.rs", "lines": [ 20, 21 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00012-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nlazy_static=\"1.*\"\n" }, { "path": "src/lib.rs", "content": "use std::sync::Arc;\n\n/// Stores a hash consed element and its hash in order to avoid recompu...
vuln-0012/sample-10012-crate
vuln-0012
hashconsing
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10012-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nlazy_static=\"1.*\"\n" }, { "path": "src/coll.rs", "content": "//! Efficient collections for hashconsed data.\n//!\n//! This module provide hash set and hash m...
vuln-0012/sample-10012-file
vuln-0012
hashconsing
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10012-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nlazy_static=\"1.*\"\n" }, { "path": "src/lib.rs", "content": "// See the LICENSE files at the top-level directory of this distribution.\n//\n// Licensed under t...
vuln-0012/sample-10012-function
vuln-0012
hashconsing
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10012-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use std::sync::Arc;\n\n/// A hashconsed value.\npub struct HConsed<T> {\n /// The actual element.\n elm: Arc<...
vuln-0013/sample-00013-crate
vuln-0013
bitvec
crate
2,020
true
[ "CWE-415", "CWE-416" ]
[ { "file": "src/vec.rs", "functions": [ "fn into_boxed_bitslice(self) -> BitBox<O, T>" ] } ]
[ { "file": "src/vec.rs", "lines": [ 655 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00013-crate\"\nversion = \"0.18.0\"\nedition = \"2018\"\n\n# Let the crate compile by ignoring this lint, otherwise this error will occur:\n#\n# error: casting `&T` to `&mut T` is undefined behavior, even if the reference is\n# unused, consider ...
vuln-0013/sample-00013-file
vuln-0013
bitvec
file
2,020
true
[ "CWE-415", "CWE-416" ]
[ { "file": "src/vec.rs", "functions": [ "fn into_boxed_bitslice(self) -> BitBox<O, T>" ] } ]
[ { "file": "src/vec.rs", "lines": [ 655 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00013-file\"\nversion = \"0.18.0\"\nedition = \"2018\"\n\n# Let the crate compile by ignoring this lint, otherwise this error will occur:\n#\n# error: casting `&T` to `&mut T` is undefined behavior, even if the reference is\n# unused, consider i...
vuln-0013/sample-00013-function
vuln-0013
bitvec
function
2,020
true
[ "CWE-415", "CWE-416" ]
[ { "file": "src/lib.rs", "functions": [ "fn into_boxed_bitslice(self) -> BitBox<O, T>" ] } ]
[ { "file": "src/lib.rs", "lines": [ 2503 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00013-function\"\nversion = \"0.18.0\"\nedition = \"2018\"\n\n[features]\nalloc = []\natomic = []\ndefault = [\n \"atomic\",\n \"std\",\n]\nstd = [\n \"alloc\",\n]\n\n[dependencies]\nfunty = \"1\"\nradium = \"0.3\"\n" }, { "path...
vuln-0013/sample-10013-crate
vuln-0013
bitvec
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10013-crate\"\nversion = \"0.18.0\"\nedition = \"2018\"\n\n# Let the crate compile by ignoring this lint, otherwise this error will occur:\n#\n# error: casting `&T` to `&mut T` is undefined behavior, even if the reference is\n# unused, consider ...
vuln-0013/sample-10013-file
vuln-0013
bitvec
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10013-file\"\nversion = \"0.18.0\"\nedition = \"2018\"\n\n# Let the crate compile by ignoring this lint, otherwise this error will occur:\n#\n# error: casting `&T` to `&mut T` is undefined behavior, even if the reference is\n# unused, consider i...
vuln-0013/sample-10013-function
vuln-0013
bitvec
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10013-function\"\nversion = \"0.18.0\"\nedition = \"2018\"\n\n[features]\nalloc = []\natomic = []\ndefault = [\n \"atomic\",\n \"std\",\n]\nstd = [\n \"alloc\",\n]\n\n[dependencies]\nfunty = \"1\"\nradium = \"0.3\"\n" }, { "path...
vuln-0014/sample-00014-crate
vuln-0014
redox_uefi_std
crate
2,025
true
[ "CWE-122" ]
[ { "file": "src/ffi.rs", "functions": [ "pub fn nstr(wstring: *const u16) -> String" ] } ]
[ { "file": "src/ffi.rs", "lines": [ 15, 20, 25 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00014-crate\"\nversion = \"0.1.13\"\n\n[dependencies]\nredox_uefi = { path = \"../../deps/uefi\", version = \"0.1.13\" }\nredox_uefi_alloc = { path = \"../../deps/uefi_alloc\", version = \"0.1.13\" }\n" }, { "path": "src/exec.rs", "c...
vuln-0014/sample-00014-file
vuln-0014
redox_uefi_std
file
2,025
true
[ "CWE-122" ]
[ { "file": "src/ffi.rs", "functions": [ "pub fn nstr(wstring: *const u16) -> String" ] } ]
[ { "file": "src/ffi.rs", "lines": [ 15, 20, 25 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00014-file\"\nversion = \"0.1.13\"\n\n[dependencies]\nredox_uefi = { path = \"../../deps/uefi\", version = \"0.1.13\" }\nredox_uefi_alloc = { path = \"../../deps/uefi_alloc\", version = \"0.1.13\" }\n" }, { "path": "src/ffi.rs", "con...
vuln-0014/sample-00014-function
vuln-0014
redox_uefi_std
function
2,025
true
[ "CWE-122" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn nstr(wstring: *const u16) -> String" ] } ]
[ { "file": "src/lib.rs", "lines": [ 18, 23, 28 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00014-function\"\nversion = \"0.1.13\"\n\n[dependencies]\nredox_uefi = { path = \"../../deps/uefi\", version = \"0.1.13\" }\nredox_uefi_alloc = { path = \"../../deps/uefi_alloc\", version = \"0.1.13\" }\n" }, { "path": "src/lib.rs", ...
vuln-0014/sample-10014-crate
vuln-0014
redox_uefi_std
crate
2,025
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10014-crate\"\nversion = \"0.1.14\"\n\n[dependencies]\nredox_uefi = { path = \"../../deps/uefi\", version = \"0.1.14\" }\nredox_uefi_alloc = { path = \"../../deps/uefi_alloc\", version = \"0.1.14\" }\n" }, { "path": "src/exec.rs", "c...
vuln-0014/sample-10014-file
vuln-0014
redox_uefi_std
file
2,025
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10014-file\"\nversion = \"0.1.14\"\n\n[dependencies]\nredox_uefi = { path = \"../../deps/uefi\", version = \"0.1.14\" }\nredox_uefi_alloc = { path = \"../../deps/uefi_alloc\", version = \"0.1.14\" }\n" }, { "path": "src/ffi.rs", "con...
vuln-0014/sample-10014-function
vuln-0014
redox_uefi_std
function
2,025
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10014-function\"\nversion = \"0.1.14\"\n\n[dependencies]\nredox_uefi = { path = \"../../deps/uefi\", version = \"0.1.14\" }\nredox_uefi_alloc = { path = \"../../deps/uefi_alloc\", version = \"0.1.14\" }\n" }, { "path": "src/lib.rs", ...
vuln-0015/sample-00015-crate
vuln-0015
arr
crate
2,020
true
[ "CWE-362" ]
[ { "file": "src/lib.rs", "functions": [ "unsafe impl<T> Sync for Array<T>{}", "unsafe impl<T> Send for Array<T>{}" ] } ]
[ { "file": "src/lib.rs", "lines": [ 45, 46 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00015-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "//! The arr crate is a simple fixed size array designed to allow huge array allocation without stack\n//! overflows.\n...
vuln-0015/sample-00015-function
vuln-0015
arr
function
2,020
true
[ "CWE-362" ]
[ { "file": "src/lib.rs", "functions": [ "unsafe impl<T> Sync for Array<T>{}", "unsafe impl<T> Send for Array<T>{}" ] } ]
[ { "file": "src/lib.rs", "lines": [ 6, 7 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00015-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "pub struct Array<T> {\n size: usize,\n ptr: *mut T,\n}\n\nunsafe impl<T> Sync for Array<T>{}\nunsafe impl<T> ...
vuln-0016/sample-00016-crate
vuln-0016
arr
crate
2,020
true
[ "CWE-120" ]
[ { "file": "src/lib.rs", "functions": [ "fn index<'a>(&'a self, idx: usize) -> &'a Self::Output {", "fn index_mut<'a>(&'a mut self, idx: usize) -> &'a mut Self::Output {" ] } ]
[ { "file": "src/lib.rs", "lines": [ 134, 144 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00016-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "//! The arr crate is a simple fixed size array designed to allow huge array allocation without stack\n//! overflows.\n...
vuln-0016/sample-00016-function
vuln-0016
arr
function
2,020
true
[ "CWE-120" ]
[ { "file": "src/lib.rs", "functions": [ "fn index<'a>(&'a self, idx: usize) -> &'a Self::Output {", "fn index_mut<'a>(&'a mut self, idx: usize) -> &'a mut Self::Output {" ] } ]
[ { "file": "src/lib.rs", "lines": [ 14, 24 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00016-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use std::ops::{Index, IndexMut, Range};\n\npub struct Array<T> {\n size: usize,\n ptr: *mut T,\n}\n\nimpl<T> ...
vuln-0017/sample-00017-crate
vuln-0017
arr
crate
2,020
true
[ "CWE-908" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn new_from_template(size: usize, template: &T) -> Self" ] } ]
[ { "file": "src/lib.rs", "lines": [ 117, 121 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00017-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "//! The arr crate is a simple fixed size array designed to allow huge array allocation without stack\n//! overflows.\n...
vuln-0017/sample-00017-function
vuln-0017
arr
function
2,020
true
[ "CWE-908" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn new_from_template(size: usize, template: &T) -> Self" ] } ]
[ { "file": "src/lib.rs", "lines": [ 15, 19 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00017-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\n" }, { "path": "src/lib.rs", "content": "use std::alloc::{alloc, alloc_zeroed, dealloc, Layout};\n\npub struct Array<T> {\n size: usize,\n ptr: *mut T...
vuln-0018/sample-00018-crate
vuln-0018
sized-chunks
crate
2,020
true
[ "CWE-129" ]
[ { "file": "src/ring_buffer/mod.rs", "functions": [ "pub fn unit(value: A) -> Self" ] }, { "file": "src/sized_chunk/mod.rs", "functions": [ "pub fn unit(value: A) -> Self" ] } ]
[ { "file": "src/ring_buffer/mod.rs", "lines": [ 259, 262 ] }, { "file": "src/sized_chunk/mod.rs", "lines": [ 157, 160 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00018-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0018/sample-00018-file
vuln-0018
sized-chunks
file
2,020
true
[ "CWE-129" ]
[ { "file": "src/ring_buffer/mod.rs", "functions": [ "pub fn unit(value: A) -> Self" ] }, { "file": "src/sized_chunk/mod.rs", "functions": [ "pub fn unit(value: A) -> Self" ] } ]
[ { "file": "src/ring_buffer/mod.rs", "lines": [ 259, 262 ] }, { "file": "src/sized_chunk/mod.rs", "lines": [ 154, 157 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00018-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nre...
vuln-0018/sample-00018-function
vuln-0018
sized-chunks
function
2,020
true
[ "CWE-129" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn unit(value: A) -> Self" ] } ]
[ { "file": "src/lib.rs", "lines": [ 27, 30 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00018-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ntypenum = \"1.11.2\"\n" }, { "path": "src/lib.rs", "content": "mod types;\n\nuse core::mem::MaybeUninit;\n\nuse typenum::U64;\n\nuse crate::types::ChunkLeng...
vuln-0018/sample-10018-crate
vuln-0018
sized-chunks
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10018-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0018/sample-10018-file
vuln-0018
sized-chunks
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10018-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nre...
vuln-0018/sample-10018-function
vuln-0018
sized-chunks
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10018-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ntypenum = \"1.11.2\"\n" }, { "path": "src/lib.rs", "content": "mod types;\n\nuse core::mem::MaybeUninit;\n\nuse typenum::U64;\n\nuse crate::types::ChunkLeng...
vuln-0019/sample-00019-crate
vuln-0019
sized-chunks
crate
2,020
true
[ "CWE-129" ]
[ { "file": "src/ring_buffer/mod.rs", "functions": [ "pub fn pair(value1: A, value2: A) -> Self" ] }, { "file": "src/sized_chunk/mod.rs", "functions": [ "pub fn pair(left: A, right: A) -> Self" ] } ]
[ { "file": "src/ring_buffer/mod.rs", "lines": [ 274, 277, 278 ] }, { "file": "src/sized_chunk/mod.rs", "lines": [ 170, 173, 174 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00019-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0019/sample-00019-file
vuln-0019
sized-chunks
file
2,020
true
[ "CWE-129" ]
[ { "file": "src/ring_buffer/mod.rs", "functions": [ "pub fn pair(value1: A, value2: A) -> Self" ] }, { "file": "src/sized_chunk/mod.rs", "functions": [ "pub fn pair(left: A, right: A) -> Self" ] } ]
[ { "file": "src/ring_buffer/mod.rs", "lines": [ 274, 277, 278 ] }, { "file": "src/sized_chunk/mod.rs", "lines": [ 167, 170, 171 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00019-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nre...
vuln-0019/sample-00019-function
vuln-0019
sized-chunks
function
2,020
true
[ "CWE-129" ]
[ { "file": "src/lib.rs", "functions": [ "pub fn pair(left: A, right: A) -> Self" ] } ]
[ { "file": "src/lib.rs", "lines": [ 27, 30, 31 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00019-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ntypenum = \"1.11.2\"\n" }, { "path": "src/lib.rs", "content": "mod types;\n\nuse core::mem::MaybeUninit;\n\nuse typenum::U64;\n\nuse crate::types::ChunkLeng...
vuln-0019/sample-10019-crate
vuln-0019
sized-chunks
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10019-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0019/sample-10019-file
vuln-0019
sized-chunks
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10019-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nre...
vuln-0019/sample-10019-function
vuln-0019
sized-chunks
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10019-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ntypenum = \"1.11.2\"\n" }, { "path": "src/lib.rs", "content": "mod types;\n\nuse core::mem::MaybeUninit;\n\nuse typenum::U64;\n\nuse crate::types::ChunkLeng...
vuln-0020/sample-00020-crate
vuln-0020
sized-chunks
crate
2,020
true
[ "CWE-129" ]
[ { "file": "src/sized_chunk/mod.rs", "functions": [ "fn from(array: &mut InlineArray<A, T>) -> Self" ] } ]
[ { "file": "src/sized_chunk/mod.rs", "lines": [ 824, 825 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00020-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0020/sample-00020-file
vuln-0020
sized-chunks
file
2,020
true
[ "CWE-129" ]
[ { "file": "src/sized_chunk/mod.rs", "functions": [ "fn from(array: &mut InlineArray<A, T>) -> Self" ] } ]
[ { "file": "src/sized_chunk/mod.rs", "lines": [ 821, 822 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00020-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nre...
vuln-0020/sample-00020-function
vuln-0020
sized-chunks
function
2,020
true
[ "CWE-129" ]
[ { "file": "src/lib.rs", "functions": [ "fn from(array: &mut InlineArray<A, T>) -> Self" ] } ]
[ { "file": "src/lib.rs", "lines": [ 50, 51 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00020-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ntypenum = \"1.11.2\"\n" }, { "path": "src/inline_array/iter.rs", "content": "use core::iter::FusedIterator;\n\nuse crate::InlineArray;\n\n/// A consuming it...
vuln-0020/sample-10020-crate
vuln-0020
sized-chunks
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10020-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0020/sample-10020-file
vuln-0020
sized-chunks
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10020-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nre...
vuln-0020/sample-10020-function
vuln-0020
sized-chunks
function
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10020-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\ntypenum = \"1.11.2\"\n" }, { "path": "src/inline_array/iter.rs", "content": "use core::iter::FusedIterator;\n\nuse crate::InlineArray;\n\n/// A consuming it...
vuln-0021/sample-00021-crate
vuln-0021
sized-chunks
crate
2,020
true
[ "CWE-401" ]
[ { "file": "src/ring_buffer/mod.rs", "functions": [ "impl<A: Clone, N: ChunkLength<A>> Clone for RingBuffer<A, N>", "fn clone(&self) -> Self" ] } ]
[ { "file": "src/ring_buffer/mod.rs", "lines": [ 791 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00021-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0021/sample-00021-file
vuln-0021
sized-chunks
file
2,020
true
[ "CWE-401" ]
[ { "file": "src/ring_buffer/mod.rs", "functions": [ "impl<A: Clone, N: ChunkLength<A>> Clone for RingBuffer<A, N>", "fn clone(&self) -> Self" ] } ]
[ { "file": "src/ring_buffer/mod.rs", "lines": [ 791 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00021-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\n\n[dependencies]\ntypenum = \"1.11.2\"\nrefpool = { version = \"0.4\", optional = true }\narray-ops = { version = \"0.1\" }\n" }, { "path...
vuln-0021/sample-00021-function
vuln-0021
sized-chunks
function
2,020
true
[ "CWE-401" ]
[ { "file": "src/lib.rs", "functions": [ "impl<A: Clone, N: ChunkLength<A>> Clone for RingBuffer<A, N>", "fn clone(&self) -> Self" ] } ]
[ { "file": "src/lib.rs", "lines": [ 123 ] } ]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-00021-function\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\n\n[dependencies]\ntypenum = \"1.11.2\"\narray-ops = { version = \"0.1\" }\n" }, { "path": "src/index.rs", "content": "// This Sou...
vuln-0021/sample-10021-crate
vuln-0021
sized-chunks
crate
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10021-crate\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\nringbuffer = [\"array-ops\"]\n\n[dependencies]\ntypenum = \"1.11.2\"\nbitmaps = \"2.0.0\"\narray-ops = { version = \"0.1\", optional = true }\nr...
vuln-0021/sample-10021-file
vuln-0021
sized-chunks
file
2,020
false
[]
[]
[]
[ { "path": "Cargo.toml", "content": "[package]\nname = \"sample-10021-file\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[features]\ndefault = [\"std\"]\nstd = []\n\n[dependencies]\ntypenum = \"1.11.2\"\nrefpool = { version = \"0.4\", optional = true }\narray-ops = { version = \"0.1\" }\n" }, { "path...