Buffer overflow/over-read in _gdGetColors (gd_gd.c) reached via the GD-file
reader (gdImageCreateFromGd) when colorsTotal is not validated (libgd 2.x /
PHP before 5.3.1). libwmf uses its bundled GD only as an output backend and
exposes no API that decodes an untrusted .gd file, so the vulnerable reader
path is never invoked. Additionally the upstream validation is already
present in this trixie source: _gdGetColors in src/extra/gd/gd_gd.c rejects
colorsTotal > gdMaxColors, and the non-2x branch reads colorsTotal as a
single byte (<= 255 < gdMaxColors). Not reachable and already remediated in
source; scanners flag it only via Debian's stale source-package match
(trixie "unimportant / unfixed"; standalone libgd2 is fixed).