Skip to content

Commit 807e679

Browse files
geoffw0mchammer01
andauthored
Apply suggestions from code review
Co-authored-by: mc <[email protected]>
1 parent e4cf7df commit 807e679

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/src/Security/CWE/CWE-416/UseOfStringAfterLifetimeEnds.qhelp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ When the <code>std::string</code> object is destroyed, the pointer returned by <
99
longer valid. If the pointer is used after the <code>std::string</code> object is destroyed, then the behavior is undefined.
1010
</p>
1111

12-
<p>Typically this problem occurs when a <code>std::string</code> is returned by a function call (or overloaded operator)
12+
<p>Typically, this problem occurs when a <code>std::string</code> is returned by a function call (or overloaded operator)
1313
by value, and the result is not immediately stored in a variable by value or reference in a way that extends the lifetime of
14-
the temporary object. The resulting temporary <code>std::string</code> object is destroyed at the end of the expression
15-
statement it is contained in, along with any memory returned by a call to <code>c_str</code>.
14+
the temporary object. The resulting temporary <code>std::string</code> object is destroyed at the end of the containing expression
15+
statement, along with any memory returned by a call to <code>c_str</code>.
1616
</p>
1717
</overview>
1818

0 commit comments

Comments
 (0)