Skip to content

Commit 367b677

Browse files
committed
Reword alert message from DynamicMemoryManagedManually
1 parent cbd972b commit 367b677

File tree

2 files changed

+86
-90
lines changed

2 files changed

+86
-90
lines changed

cpp/misra/src/rules/RULE-21-6-2/DynamicMemoryManagedManually.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ where
102102
/* ===== 1. The expression calls one of the dynamic memory management functions. ===== */
103103
expr = dynamicMemoryManagementFunction.getACallToThisFunction() and
104104
message =
105-
"This expression is a call to `" + dynamicMemoryManagementFunction.getName() + "` which is " +
105+
"Banned call to `" + dynamicMemoryManagementFunction.getName() + "` which is " +
106106
dynamicMemoryManagementFunction.describe() + "."
107107
or
108108
/* ===== 2. The expression takes address of the dynamic memory management functions. ===== */
109109
expr = dynamicMemoryManagementFunction.getAnAccess() and
110110
message =
111-
"This expression takes address of `" + dynamicMemoryManagementFunction.getName() +
111+
"Taking the address of a banned function `" + dynamicMemoryManagementFunction.getName() +
112112
"` which is " + dynamicMemoryManagementFunction.describe() + "."
113113
)
114114
select expr, message

0 commit comments

Comments
 (0)