shithub: puzzles

Download patch

ref: dad2f35502c611dae758915cfb6dface4a303550
parent: 095224d5711f3482d6be0ffc01621143f25c7104
author: Simon Tatham <anakin@pobox.com>
date: Thu Apr 20 10:25:22 EDT 2023

Store a size field inside the DSF type.

This permits bounds-checking of all inputs to dsf_canonify and
dsf_merge, so that any out-of-range values will provoke assertion
failure instead of undefined behaviour.