Commit 886e34e
fix(callback): add length pre-check before constant-time state comparison
- Fail fast when state parameter length differs from expected,
avoiding unnecessary memory allocation from maliciously large
query values before the constant-time comparison
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2fb3183 commit 886e34e
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments