Skip to content

Commit a6119d1

Browse files
myterons19110
andauthored
Update docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-476/README.md
Co-authored-by: Hubert Daniszewski <[email protected]> Signed-off-by: myteron <[email protected]>
1 parent 1b5c269 commit a6119d1

File tree

1 file changed

+1
-1
lines changed
  • docs/Secure-Coding-Guide-for-Python/CWE-703/CWE-476

1 file changed

+1
-1
lines changed

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
@@ -102,7 +102,7 @@ print_number_of_students(None)
102102

103103
```
104104

105-
The code example attempts to directly calling `len()` on a non-array value, but rather on `None`, which will raise a `TypeError`. Such unchecked dereferencing of a `None` value could result in an application crash or denial of service, impacting system availability.
105+
The code example attempts to directly call `len()` on a non-array value, in this case on `None`, which will raise a `TypeError`. Such unchecked dereferencing of a `None` value could result in an application crash or denial of service, impacting system availability.
106106

107107
## Compliant Code Example - Confirm the object is an array or similar data structure before taking its length
108108

0 commit comments

Comments
 (0)