Skip to content

v0.17.1

Choose a tag to compare

@tannevaled tannevaled released this 07 Nov 22:01
4c33998
go install github.com/go-slides/slides/cmd/slides@v0.17.1

Security: nested range over data lists is now bounded in CPU time (#74).

v0.17.0 listed this as known open. A deck whose templates nest range over large data lists could keep the renderer busy for minutes. Template execution now has a step budget: past 1,048,576 steps or 10 s, the deck is refused with template.limit instead of hanging. One step costs about 260 ns, so ordinary decks stay far below the bound and render as before.

Also: the limit tests no longer depend on runner speed (#75). They use smaller budgets and looser time bounds under -race; the production limits are unchanged.