Skip to content

Commit df4158a

Browse files
szepeviktorthomasnyman
authored andcommitted
Fix even more typos
Signed-off-by: Viktor Szépe <viktor@szepe.net>
1 parent 8355298 commit df4158a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/Compiler-Hardening-Guides/Compiler-Annotations-for-C-and-C++.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void to_uppercase(char *buffer, size_t size) __attribute__((access(read_write, 1
226226

227227
---
228228

229-
### Mark positional arguments holding open file desriptors
229+
### Mark positional arguments holding open file descriptors
230230

231231
| Attribute | Supported since | Type | Description |
232232
|:-----------------------------------------------------------------------------------------------|:---------------------------:|:----------------------------:|:------------------------------------------------------------------------------------------------- |
@@ -237,7 +237,7 @@ void to_uppercase(char *buffer, size_t size) __attribute__((access(read_write, 1
237237
The `fd_arg`, `fd_arg_read`, and `fd_arg_write` attributes in GCC[^gcc-fd_arg] indicate that the annotated function expects an open file descriptor as an argument. GCC’s static analyzer (`-fanalyzer`[^gcc-analyzer]) can use this information to to catch:
238238

239239
- **Access mode mismatches** (`-Wanalyzer-fd-access-mode-mismatch`) if there are code paths through which a read on a write-only file descriptor or write on a read-only file descriptor is attempted.
240-
- **Double-close conditions** (`-Wanalyzer-fd-double-close`) if there are code paths thorugh which a file descriptor can be closed more than once.
240+
- **Double-close conditions** (`-Wanalyzer-fd-double-close`) if there are code paths thorough which a file descriptor can be closed more than once.
241241
- **File descriptor leaks** (`-Wanalyzer-fd-leak`) if there are code paths through which a file descriptor goes out of scope without being closed.
242242
- **Use-after-close** (`-Wanalyzer-fd-use-after-close`) if there are code paths through which a read or write is attempted on a closed file descriptor.
243243
- **Use-without-check** (`-Wanalyzer-fd-use-without-check`) if there are code paths through which a file descriptor is used without being first checked for validity.

docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-476/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ print_number_of_students(None)
158158

159159
```
160160

161-
This code example returns: `TypeError: exceptions must derive from BaseException`. This is problematic because rasing `None` does not provide any useful error information or traceback, leading to less informative error handling and potentially causing the program to crash unexpectedly without clear diagnostic details.
161+
This code example returns: `TypeError: exceptions must derive from BaseException`. This is problematic because raising `None` does not provide any useful error information or traceback, leading to less informative error handling and potentially causing the program to crash unexpectedly without clear diagnostic details.
162162

163163
## Compliant Code Example - Raise only exceptions that properly inherit from the BaseException class, never raise "None"
164164

docs/Secure-Coding-Guide-for-Python/templates/README_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Introduction paragraph, expanding on the introduction sentence...
88
* Be brief.
99
* Avoid duplicated content.
1010

11-
An `example01.py` code is optional and usefull to demonstrate behaviour that does __not__ work well in the compliant or noncompliant code.
11+
An `example01.py` code is optional and useful to demonstrate behaviour that does __not__ work well in the compliant or noncompliant code.
1212

1313
_[example01.py:](example01.py)_
1414

0 commit comments

Comments
 (0)