Commit 806784b
CI Bot
fix: clamp limit internally in getArticleHistory
Defense-in-depth: clamp the caller-provided limit to
[1, HISTORY_WALK_LIMIT] inside the service method itself so future
direct callers (CLI, tests) can't trigger unbounded ancestry walks.1 parent c086e0c commit 806784b
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
355 | 356 | | |
356 | 357 | | |
357 | 358 | | |
| |||
367 | 368 | | |
368 | 369 | | |
369 | 370 | | |
370 | | - | |
| 371 | + | |
371 | 372 | | |
372 | 373 | | |
373 | 374 | | |
| |||
0 commit comments