Files
silverwind facc0f2b15 refactor: prevent out-of-bounds read (#39936)
`IsReadmeFileExtension("readme", exts...)` panicked with `index out of
range [6] with length 6` when `exts` had no empty extension. The only
caller always passes one, so this was not reachable in practice.

Fixes:
https://github.com/go-gitea/gitea/security/quality/rules/go%2Findex-out-of-bounds

Written by Claude.
2026-10-22 13:06:01 +00:00
..
2024-06-11 18:47:45 +00:00
2023-07-04 18:36:08 +00:00
2023-05-08 19:49:59 +08:00
2025-07-30 07:08:59 +00:00