Skip to content

Commit d8bad77

Browse files
authored
C++: Fix QLDoc
1 parent 69417e1 commit d8bad77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/Likely Bugs/Memory Management/ReturnStackAllocatedMemory.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class ReturnStackAllocatedMemoryConfig extends MustFlowConfiguration {
6666
* S s;
6767
* return &s.x; // BAD: &s.x is an address of a variable on the stack.
6868
* }
69+
* ```
6970
*/
7071
override predicate isAdditionalFlowStep(DataFlow::Node node1, DataFlow::Node node2) {
7172
node2.asInstruction().(FieldAddressInstruction).getObjectAddressOperand() = node1.asOperand()

0 commit comments

Comments
 (0)