params: fix charp corruption on allocation failure (CVE-2026-89552) | HOL Guard CVE