Use palloc_array() in a few more places to avoid overflow

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 3fbec9e504b1b4dca0a30d4081e1eaa687510fc5
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-05-11T18:28:46Z
Releases: 18.4
Use palloc_array() in a few more places to avoid overflow

These could overflow on 32-bit systems.

Backpatch-through: 14
Security: CVE-2026-6473

Files