]> git.maquefel.me Git - brevno-suite/hugo/commit
Fix index out of range panic in fileEventsContentPaths
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 Feb 2026 09:21:12 +0000 (10:21 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 27 Feb 2026 11:05:13 +0000 (12:05 +0100)
commitf797f84902297b7dd37c3f39ce057789a4d8e950
tree4a1cd5af52d4a43c18589c92df1464f6f0b1fdb0
parente8577771c3275d16b7d1b31cca5e9fd3ea517416
Fix index out of range panic in fileEventsContentPaths

The nested loop had dirs as the outer loop and others as the inner loop
with a single counter, causing n to exceed len(others) when multiple
dirs existed. Swap the loop order so each file in others is checked
against all dirs exactly once.

Fixes #14573

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hugolib/integrationtest_builder.go
hugolib/rebuild_test.go
hugolib/site.go