Skip to content

Commit

Permalink
Add MemoryLeak undefined behavior category
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstanb committed Aug 3, 2023
1 parent d85c72e commit c72fded
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/messageCategory.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type undefined_behavior =
| UseAfterFree
| DoubleFree
| InvalidMemoryDeallocation
| MemoryLeak
| Uninitialized
| DoubleLocking
| Other
Expand Down Expand Up @@ -67,6 +68,7 @@ struct
let use_after_free: category = create @@ UseAfterFree
let double_free: category = create @@ DoubleFree
let invalid_memory_deallocation: category = create @@ InvalidMemoryDeallocation
let memory_leak: category = create @@ MemoryLeak
let uninitialized: category = create @@ Uninitialized
let double_locking: category = create @@ DoubleLocking
let other: category = create @@ Other
Expand Down Expand Up @@ -117,6 +119,7 @@ struct
| UseAfterFree -> ["UseAfterFree"]
| DoubleFree -> ["DoubleFree"]
| InvalidMemoryDeallocation -> ["InvalidMemoryDeallocation"]
| MemoryLeak -> ["MemoryLeak"]
| Uninitialized -> ["Uninitialized"]
| DoubleLocking -> ["DoubleLocking"]
| Other -> ["Other"]
Expand Down Expand Up @@ -228,6 +231,7 @@ let behaviorName = function
|UseAfterFree -> "UseAfterFree"
|DoubleFree -> "DoubleFree"
|InvalidMemoryDeallocation -> "InvalidMemoryDeallocation"
|MemoryLeak -> "MemoryLeak"
|Uninitialized -> "Uninitialized"
|DoubleLocking -> "DoubleLocking"
|Other -> "Other"
Expand Down

0 comments on commit c72fded

Please sign in to comment.