Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit0f7154e

Browse files
Merge pull request#943 from jketema/typo
Fix typo in the alert message of `InvalidatedEnvStringPointers.qll`
2 parents6ee9202 +4fdd046 commit0f7154e

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
| test.c:21:14:21:19 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.c:13:12:13:17 | call to getenv | call to getenv | test.c:17:13:17:18 | call to getenv | call to getenv |
2-
| test.c:134:14:134:17 | temp | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.c:130:12:130:17 | call to getenv | call to getenv | test.c:131:11:131:16 | call to getenv | call to getenv |
3-
| test.c:134:20:134:22 | tmp | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.c:131:11:131:16 | call to getenv | call to getenv | test.c:130:12:130:17 | call to getenv | call to getenv |
4-
| test.c:165:14:165:26 | tmpvar_global | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.c:157:19:157:24 | call to getenv | call to getenv | test.c:161:20:161:25 | call to getenv | call to getenv |
5-
| test.c:188:18:188:18 | r | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.c:185:7:185:15 | call to setlocale | call to setlocale | test.c:187:8:187:17 | call to localeconv | call to localeconv |
6-
| test.c:208:10:208:15 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.c:202:12:202:17 | call to getenv | call to getenv | test.c:206:3:206:8 | call to f11fun | call to f11fun |
1+
| test.c:21:14:21:19 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.c:13:12:13:17 | call to getenv | call to getenv | test.c:17:13:17:18 | call to getenv | call to getenv |
2+
| test.c:134:14:134:17 | temp | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.c:130:12:130:17 | call to getenv | call to getenv | test.c:131:11:131:16 | call to getenv | call to getenv |
3+
| test.c:134:20:134:22 | tmp | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.c:131:11:131:16 | call to getenv | call to getenv | test.c:130:12:130:17 | call to getenv | call to getenv |
4+
| test.c:165:14:165:26 | tmpvar_global | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.c:157:19:157:24 | call to getenv | call to getenv | test.c:161:20:161:25 | call to getenv | call to getenv |
5+
| test.c:188:18:188:18 | r | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.c:185:7:185:15 | call to setlocale | call to setlocale | test.c:187:8:187:17 | call to localeconv | call to localeconv |
6+
| test.c:208:10:208:15 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.c:202:12:202:17 | call to getenv | call to getenv | test.c:206:3:206:8 | call to f11fun | call to f11fun |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-`ENV34-C`,`RULE-21-20`,`RULE-25-5-3`:`DoNotStorePointersReturnedByEnvFunctions.ql`,`CallToSetlocaleInvalidatesOldPointers.ql`,`CallToSetlocaleInvalidatesOldPointersMisra.ql`
2+
- Fixed a misspelling of "subsequent" in the alert message.

‎cpp/common/src/codingstandards/cpp/rules/invalidatedenvstringpointers/InvalidatedEnvStringPointers.qll‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ query predicate problems(
6969
// The two calls are incompatible
7070
fc1!=fc2and
7171
incompatibleFunctions(fc1.getTarget(),fc2.getFunction())and
72-
// The pointer returned by fc1 accessed in `e`afer the second `GetenvFunctionCall`
72+
// The pointer returned by fc1 accessed in `e`after the second `GetenvFunctionCall`
7373
DataFlow::localExprFlow(fc1,e)and
7474
e=fc2.getASuccessor+()and
75-
message="This pointer was returned by a $@ and may have been overwritten by thesusequent $@."and
75+
message="This pointer was returned by a $@ and may have been overwritten by thesubsequent $@."and
7676
fc1text=fc1.toString()and
7777
fc2text=fc2.toString()
7878
}
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
| test.cpp:21:14:21:19 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:13:12:13:17 | call to getenv | call to getenv | test.cpp:17:13:17:18 | call to getenv | call to getenv |
2-
| test.cpp:134:14:134:17 | temp | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:130:12:130:17 | call to getenv | call to getenv | test.cpp:131:11:131:16 | call to getenv | call to getenv |
3-
| test.cpp:134:20:134:22 | tmp | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:131:11:131:16 | call to getenv | call to getenv | test.cpp:130:12:130:17 | call to getenv | call to getenv |
4-
| test.cpp:165:14:165:26 | tmpvar_global | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:157:19:157:24 | call to getenv | call to getenv | test.cpp:161:20:161:25 | call to getenv | call to getenv |
5-
| test.cpp:188:18:188:18 | r | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:185:7:185:15 | call to setlocale | call to setlocale | test.cpp:187:8:187:17 | call to localeconv | call to localeconv |
6-
| test.cpp:208:10:208:15 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:202:12:202:17 | call to getenv | call to getenv | test.cpp:206:3:206:8 | call to f11fun | call to f11fun |
7-
| test.cpp:216:16:216:17 | r1 | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:214:14:214:18 | call to ctime | call to ctime | test.cpp:215:3:215:9 | call to asctime | call to asctime |
8-
| test.cpp:226:16:226:17 | r1 | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:222:14:222:18 | call to ctime | call to ctime | test.cpp:225:14:225:20 | call to asctime | call to asctime |
9-
| test.cpp:231:16:231:17 | r2 | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:225:14:225:20 | call to asctime | call to asctime | test.cpp:229:8:229:12 | call to ctime | call to ctime |
10-
| test.cpp:240:16:240:17 | r1 | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:236:19:236:27 | call to localtime | call to localtime | test.cpp:239:19:239:24 | call to gmtime | call to gmtime |
11-
| test.cpp:245:16:245:17 | r2 | This pointer was returned by a $@ and may have been overwritten by thesusequent $@. | test.cpp:239:19:239:24 | call to gmtime | call to gmtime | test.cpp:243:8:243:16 | call to localtime | call to localtime |
1+
| test.cpp:21:14:21:19 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:13:12:13:17 | call to getenv | call to getenv | test.cpp:17:13:17:18 | call to getenv | call to getenv |
2+
| test.cpp:134:14:134:17 | temp | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:130:12:130:17 | call to getenv | call to getenv | test.cpp:131:11:131:16 | call to getenv | call to getenv |
3+
| test.cpp:134:20:134:22 | tmp | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:131:11:131:16 | call to getenv | call to getenv | test.cpp:130:12:130:17 | call to getenv | call to getenv |
4+
| test.cpp:165:14:165:26 | tmpvar_global | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:157:19:157:24 | call to getenv | call to getenv | test.cpp:161:20:161:25 | call to getenv | call to getenv |
5+
| test.cpp:188:18:188:18 | r | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:185:7:185:15 | call to setlocale | call to setlocale | test.cpp:187:8:187:17 | call to localeconv | call to localeconv |
6+
| test.cpp:208:10:208:15 | tmpvar | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:202:12:202:17 | call to getenv | call to getenv | test.cpp:206:3:206:8 | call to f11fun | call to f11fun |
7+
| test.cpp:216:16:216:17 | r1 | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:214:14:214:18 | call to ctime | call to ctime | test.cpp:215:3:215:9 | call to asctime | call to asctime |
8+
| test.cpp:226:16:226:17 | r1 | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:222:14:222:18 | call to ctime | call to ctime | test.cpp:225:14:225:20 | call to asctime | call to asctime |
9+
| test.cpp:231:16:231:17 | r2 | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:225:14:225:20 | call to asctime | call to asctime | test.cpp:229:8:229:12 | call to ctime | call to ctime |
10+
| test.cpp:240:16:240:17 | r1 | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:236:19:236:27 | call to localtime | call to localtime | test.cpp:239:19:239:24 | call to gmtime | call to gmtime |
11+
| test.cpp:245:16:245:17 | r2 | This pointer was returned by a $@ and may have been overwritten by thesubsequent $@. | test.cpp:239:19:239:24 | call to gmtime | call to gmtime | test.cpp:243:8:243:16 | call to localtime | call to localtime |

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp