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

Commite8b910e

Browse files
authored
Merge pull request#926 from jketema/typo
Fix misspelling of asynchronous in SIG30-C
2 parents3df1125 +56258d1 commite8b910e

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

‎c/cert/src/rules/SIG30-C/CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ class AsyncSafeVariableAccess extends VariableAccess {
3737
abstractclassAsyncSafeFunctionextendsFunction{}
3838

3939
/**
40-
* C standard libraryayncronous-safe functions
40+
* C standard libraryasynchronous-safe functions
4141
*/
4242
classCAsyncSafeFunctionextendsAsyncSafeFunction{
4343
//tion, or the signal function with the first argument equal to the signal number corresponding to the signal that caused the invocation of the handler
4444
CAsyncSafeFunction(){this.hasGlobalName(["abort","_Exit","quick_exit","signal"])}
4545
}
4646

4747
/**
48-
* POSIX definedayncronous-safe functions
48+
* POSIX definedasynchronous-safe functions
4949
*/
5050
classPosixAsyncSafeFunctionextendsAsyncSafeFunction{
5151
PosixAsyncSafeFunction(){
@@ -73,7 +73,7 @@ class PosixAsyncSafeFunction extends AsyncSafeFunction {
7373
}
7474

7575
/**
76-
* Application definedayncronous-safe functions
76+
* Application definedasynchronous-safe functions
7777
*/
7878
classApplicationAsyncSafeFunctionextendsAsyncSafeFunction{
7979
pragma[nomagic]
@@ -122,5 +122,5 @@ where
122122
or
123123
fcinstanceofAsyncUnsafeRaiseCall
124124
)
125-
selectfc,"Asyncronous-unsafe function calls within a $@ can lead to undefined behavior.",
125+
selectfc,"Asynchronous-unsafe function calls within a $@ can lead to undefined behavior.",
126126
handler.getRegistration(),"signal handler"
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql:110,11-19)
22
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql:110,31-39)
33
WARNING: module 'DataFlow' has been deprecated and may be removed in future (CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql:111,9-17)
4-
| test.c:10:3:10:18 | call to log_local_unsafe |Asyncronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:16:7:16:12 | call to signal | signal handler |
5-
| test.c:11:3:11:6 | call to free |Asyncronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:16:7:16:12 | call to signal | signal handler |
6-
| test.c:46:3:46:9 | call to longjmp |Asyncronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:50:7:50:12 | call to signal | signal handler |
7-
| test.c:76:7:76:11 | call to raise |Asyncronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:91:7:91:12 | call to signal | signal handler |
4+
| test.c:10:3:10:18 | call to log_local_unsafe |Asynchronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:16:7:16:12 | call to signal | signal handler |
5+
| test.c:11:3:11:6 | call to free |Asynchronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:16:7:16:12 | call to signal | signal handler |
6+
| test.c:46:3:46:9 | call to longjmp |Asynchronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:50:7:50:12 | call to signal | signal handler |
7+
| test.c:76:7:76:11 | call to raise |Asynchronous-unsafe function calls within a $@ can lead to undefined behavior. | test.c:91:7:91:12 | call to signal | signal handler |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-`SIG30-C`:`CallOnlyAsyncSafeFunctionsWithinSignalHandlers.ql`
2+
- Fixed a misspelling of "asynchronous" in the alert message.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp