Package: libwebp7 Version: 1.5.0-0.1 Severity: normal What's wrong ------------
libwebp built with CMake has no run-time NEON check on 32-bit ARM (checked in v1.5.0, v1.6.0, and `main` as of 2026-11-18): `VP8GetCPUInfo(kNEON)` always returns 1. On a CPU without NEON, the first decode is killed by SIGILL. Raspberry Pi OS Trixie ships this build for ARMv6, so decoding WebP images (both lossy and lossless files tested) crashes on a Raspberry Pi Zero W, and should do the same on a Zero or Pi 1 (same CPU). On a Raspberry Pi Zero W (ARM1176JZF-S, no NEON), `WebPDecodeRGBA` on a lossy and a lossless WebP file, 5 runs each: 1.2.4-0.2+deb12u1 (Bookworm): decodes, 10 of 10 1.5.0-0.1 (Trixie): SIGILL, 10 of 10 1.5.0-0.1, VP8GetCPUInfo set to NULL (plain C): decodes, 2 of 2 The same Trixie build decodes correctly on a Zero 2 W (Cortex-A53, has NEON), 10 of 10. Why --- - autotools: when the NEON code needs `-mfpu=neon`, ` https://www.google.com/url?q=http://configure.ac&source=gmail&ust=1795139739812000&sa=E` defines `WEBP_HAVE_NEON_RTCD`, so `armCPUInfo` in `src/dsp/cpu.c` reads `/proc/cpuinfo` at run time. - CMake (`cmake/cpu.cmake`, v1.5.0 and v1.6.0) builds the `_neon.c` files with `-mfpu=neon` and sets `WEBP_HAVE_NEON`, but never sets `WEBP_HAVE_NEON_RTCD` (`cmake/ https://www.google.com/url?q=http://config.h.in&source=gmail&ust=1795139739812000&sa=E` has a `#cmakedefine` for it). So `armCPUInfo` reports NEON on every 32-bit ARM CPU. - The armhf binaries agree: in 1.2.4 `armCPUInfo` reads `/proc/cpuinfo`; in 1.5.0-0.1 and 1.6.0-0.1 it is `return feature == kNEON`. How to fix ---------- In `cmake/cpu.cmake`, when the NEON sources need `-mfpu=neon` (the compiler's baseline has no NEON), also define `WEBP_HAVE_NEON_RTCD`, as ` https://www.google.com/url?q=http://configure.ac&source=gmail&ust=1795139739812000&sa=E` does. Until then, a distribution can add `-DWEBP_HAVE_NEON_RTCD` to its armhf CFLAGS. (I have not built either change.) The test files and a short ctypes decoder are in my study's repository, public on 2026-12-18; happy to share them sooner. Since the switch to CMake (#1040972, first in 1.3.2-0.1~exp1), this affects Debian's own armhf packages too: the armhf baseline does not require NEON, so ARMv7 CPUs without it should crash the same way (I have not tested one). The armhf 1.6.0-0.1 in forky/sid has the same code; bookworm-backports carries 1.5.0-0.1~bpo12+1 (I have not checked that binary). Thanks, Michael Ugrin

