sort: fix buffer under-read (CVE-2025-5278)

Source: Fedora 42: FEDORA-2025-f791604f4c critical: coreutils buffer issue