Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a9a9fe1

Browse filesBrowse files
committed
Declarations8: fix metadata DCL30-C
1 parent 28fbabe commit a9a9fe1
Copy full SHA for a9a9fe1

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎c/cert/src/rules/DCL30-C/AppropriateStorageDurationsFunctionReturn.ql

Copy file name to clipboardExpand all lines: c/cert/src/rules/DCL30-C/AppropriateStorageDurationsFunctionReturn.ql
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
2-
* @id c/cert/declare-objects-with-appropriate-storage-durations
2+
* @id c/cert/appropriate-storage-durations-function-return
33
* @name DCL30-C: Declare objects with appropriate storage durations
4-
* @description When storage durations are not compatible between assigned pointers it can lead to
5-
* referring to objects outside of their lifetime, which is undefined behaviour.
4+
* @description When pointers to local variables are returned by a function it can lead to referring
5+
* to objects outside of their lifetime, which is undefined behaviour.
66
* @kind problem
77
* @precision high
88
* @problem.severity error

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.