Skip to content

Commit 14b75a9

Browse files
geoffw0mchammer01
andauthored
Apply suggestions from code review
Co-authored-by: mc <[email protected]>
1 parent 087e666 commit 14b75a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/ql/src/queries/security/CWE-825/AccessAfterLifetime.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<p>
88
Dereferencing a pointer after the lifetime of its target has ended causes undefined behavior. Memory
9-
may be corrupted causing the program to crash or behave incorrectly, in some cases exposing the program
9+
may be corrupted, causing the program to crash or behave incorrectly, in some cases exposing the program
1010
to potential attacks.
1111
</p>
1212

@@ -33,7 +33,7 @@ after that lifetime has ended, causing undefined behavior:
3333
<p>
3434
One way to fix this is to change the return type of the function from a pointer to a <code>Box</code>,
3535
which ensures that the value it points to remains on the heap for the lifetime of the <code>Box</code>
36-
itself. Notice that there is no longer a need for an <code>unsafe</code> block as the code no longer
36+
itself. Note that there is no longer a need for an <code>unsafe</code> block as the code no longer
3737
handles pointers directly:
3838
</p>
3939

0 commit comments

Comments
 (0)