You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
M.warn ~category:(Behavior (UndefinedInvalidMemoryDeallocation)) ~tags:[CWE590] "Free of non-dynamically allocated memory in function %s for pointer %a" special_fn.vname d_exp ptr;
2281
-
Checks.warn Checks.Category.InvalidMemoryAccess"Free of non-dynamically allocated memory in function %s for pointer %a" special_fn.vname d_exp ptr
2281
+
Checks.warn Checks.Category.InvalidMemoryAccess"Free of non-dynamically allocated memory in function %s for pointer %a" special_fn.vname d_exp ptr
M.warn ~category:(Behavior (UndefinedInvalidMemoryDeallocation)) ~tags:[CWE761] "Free of memory not at start of buffer in function %s for pointer %a" special_fn.vname d_exp ptr;
Copy file name to clipboardExpand all lines: src/analyses/memOutOfBounds.ml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -305,7 +305,7 @@ struct
305
305
(set_mem_safety_flag InvalidDeref;
306
306
M.warn ~category:(Behavior behavior) ~tags:[CWE cwe_number] "Size of lval dereference expression is %a (in bytes). It is offset by %a (in bytes). Memory out-of-bounds access must occur"ID.pretty casted_es ID.pretty casted_offs);
307
307
Checks.warn Checks.Category.InvalidMemoryAccess"Size of lval dereference expression is %a (in bytes). It is offset by %a (in bytes). Memory out-of-bounds access must occur"ID.pretty casted_es ID.pretty casted_offs
308
-
|Somefalse ->
308
+
|Somefalse ->
309
309
Checks.safe Checks.Category.InvalidMemoryAccess
310
310
|None ->
311
311
(set_mem_safety_flag InvalidDeref;
@@ -484,7 +484,7 @@ struct
484
484
set_mem_safety_flag InvalidDeref;
485
485
M.warn ~category:(Behavior behavior) ~tags:[CWE cwe_number] "Size of %a in function %s is %a (in bytes) with an address offset of %a (in bytes). Count is %a (in bytes). Memory out-of-bounds access must occur" d_exp ptr fun_name ID.pretty casted_ds ID.pretty casted_ao ID.pretty casted_en;
486
486
Checks.warn Checks.Category.InvalidMemoryAccess"Size of %a in function %s is %a (in bytes) with an address offset of %a (in bytes). Count is %a (in bytes). Memory out-of-bounds access must occur" d_exp ptr fun_name ID.pretty casted_ds ID.pretty casted_ao ID.pretty casted_en
0 commit comments