diff options
| author | google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> | 2026-02-21 03:01:51 +0000 |
|---|---|---|
| committer | google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> | 2026-02-21 03:01:51 +0000 |
| commit | 72c80ac2ef7b81090cb95e397ea3893ad6d29258 (patch) | |
| tree | 120e4dbdef90081e0208f9154197faeb057d74e2 /scripts/clean_test_env.sh | |
| parent | ec3c0edbac371856fdaa414b016d1755bd1512c2 (diff) | |
| download | neko-fix-image-proxy-dos-12392893234509318071.tar.gz neko-fix-image-proxy-dos-12392893234509318071.tar.bz2 neko-fix-image-proxy-dos-12392893234509318071.zip | |
Fix Unbounded Memory Usage in Image Proxyfix-image-proxy-dos-12392893234509318071
- Added `maxImageProxySize` constant (10MB) to limit memory usage.
- Used `io.LimitReader` in `imageProxyHandler` to enforce the limit.
- Added regression test `web/proxy_limit_test.go` to verify the fix.
Co-authored-by: adammathes <868470+adammathes@users.noreply.github.com>
Diffstat (limited to 'scripts/clean_test_env.sh')
0 files changed, 0 insertions, 0 deletions
