Reduce size of the buffer to avoid stack smashing. PR: 265056 Reported by: ohartmann@walstatt.org MFH: 2023Q1 (bug fix) (cherry picked from commit 4967d9eb)