Commit 6bdd6f5
committed
frozen_dataclass(security): Document and test immutability bypass vulnerability
why: Alert users to potential security issue and provide comprehensive test coverage
what:
- Discover critical vulnerability: _frozen flag can be modified to bypass immutability
- Add parametrized tests demonstrating the vulnerability and its implications
- Document the issue in docstrings with clear examples
- Implement NamedTuple-based test cases for boundary conditions and edge cases
- Add extensive dimension testing (zero, negative, extreme values)
security: Users should be aware that the immutability can be bypassed by setting _frozen=False
tests: Expanded from 6 to 14 pytest tests and 16 to 22 doctests1 parent 26c3985 commit 6bdd6f5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments