Skip to content

Commit 0e8f03e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into next
2 parents 1c222ae + e8b910e commit 0e8f03e

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
abstract class AsyncSafeFunction extends Function { }
3838

3939
/**
40-
* C standard library ayncronous-safe functions
40+
* C standard library asynchronous-safe functions
4141
*/
4242
class CAsyncSafeFunction extends AsyncSafeFunction {
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 defined ayncronous-safe functions
48+
* POSIX defined asynchronous-safe functions
4949
*/
5050
class PosixAsyncSafeFunction extends AsyncSafeFunction {
5151
PosixAsyncSafeFunction() {
@@ -73,7 +73,7 @@ class PosixAsyncSafeFunction extends AsyncSafeFunction {
7373
}
7474

7575
/**
76-
* Application defined ayncronous-safe functions
76+
* Application defined asynchronous-safe functions
7777
*/
7878
class ApplicationAsyncSafeFunction extends AsyncSafeFunction {
7979
pragma[nomagic]
@@ -122,5 +122,5 @@ where
122122
or
123123
fc instanceof AsyncUnsafeRaiseCall
124124
)
125-
select fc, "Asyncronous-unsafe function calls within a $@ can lead to undefined behavior.",
125+
select fc, "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,4 +1,4 @@
1-
| 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 |
2-
| 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 |
3-
| 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 |
4-
| 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 |
1+
| 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 |
2+
| 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 |
3+
| 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 |
4+
| 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)