diff options
| author | google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> | 2026-02-18 16:22:00 +0000 |
|---|---|---|
| committer | google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> | 2026-02-18 16:22:00 +0000 |
| commit | ec3c0edbac371856fdaa414b016d1755bd1512c2 (patch) | |
| tree | 120e4dbdef90081e0208f9154197faeb057d74e2 /.golangci.yml | |
| parent | 1c73fafe88f9a47c599d1d8107d2e7fc3c95909e (diff) | |
| download | neko-ec3c0edbac371856fdaa414b016d1755bd1512c2.tar.gz neko-ec3c0edbac371856fdaa414b016d1755bd1512c2.tar.bz2 neko-ec3c0edbac371856fdaa414b016d1755bd1512c2.zip | |
Fix Unbounded Memory Usage in Image Proxy
- 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 '.golangci.yml')
| -rw-r--r-- | .golangci.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml index 6b0cd40..e8e8364 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,9 +1,12 @@ +version: "2" run: tests: true timeout: 5m linters: disable-all: true + disable: + - errcheck enable: - staticcheck - govet |
