Skip to content

Commit 174f212

Browse files
authored
Merge pull request #16589 from rvermeulen/rvermeulen/update-nospaceforzeroterminator-qlhelp
Rewrite recommendations for the query `cpp/no-space-for-terminator`
2 parents c936f96 + 6df4c89 commit 174f212

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/Security/CWE/CWE-131/NoSpaceForZeroTerminator.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ the required buffer size, but do not allocate space for the zero terminator.
1212
</overview>
1313
<recommendation>
1414
<p>
15-
The expression highlighted by this rule creates a buffer that is of insufficient size to contain
16-
the data being copied. This makes the code vulnerable to buffer overflow which can result in anything from a segmentation fault to a security vulnerability (particularly if the array is on stack-allocated memory).
15+
The highlighted code segment creates a buffer without ensuring it's large enough to accommodate the copied data.
16+
This leaves the code susceptible to a buffer overflow attack, which could lead to anything from program crashes to malicious code execution.
1717
</p>
1818

1919
<p>

0 commit comments

Comments
 (0)