Commit 3f954bc
fix(agentic): constant allocation cap for reasoner search results
CodeQL (go/uncontrolled-allocation-size) does not track the limit clamp
through getIntQuery. Allocate at the constant max (50) instead - the
loop still stops at the requested limit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 8a3c596 commit 3f954bc
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
0 commit comments