We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d13b9 commit e6056f9Copy full SHA for e6056f9
rust/ql/test/query-tests/security/CWE-770/main.rs
@@ -199,7 +199,7 @@ unsafe fn test_system_alloc(v: usize) {
199
200
let l3 = std::alloc::Layout::array::<u8>(10).unwrap();
201
let m3 = std::alloc::System.alloc(l3);
202
- let _ = std::alloc::System.realloc(m3, l3, v); // $ Alert[rust/uncontrolled-allocation-size]
+ let _ = std::alloc::System.realloc(m3, l3, v); // $ Alert[rust/uncontrolled-allocation-size]=arg1
203
204
let l4 = std::alloc::Layout::array::<u8>(10).unwrap();
205
let m4 = std::ptr::NonNull::<u8>::new(std::alloc::alloc(l4)).unwrap();
0 commit comments