commit 5c0ab198bd9dc104f8f15969c32d8df70c86e0fa from: Omar Polo date: Wed Dec 29 21:28:34 2021 UTC use NL_TEXTMAX for the strerror_r buffer the strerror_r(3) man page mentions that it returns a message that's up to NL_TEXTMAX bytes long (including the NUL.) strerror_r can fail with ERANGE if the buffer is not large enough, and that's probably the case of some "funny" Rerrors that cage gets from time to time. commit - 6150fab38e3d157bc176cc8321a5e4e8302ba6b8 commit + 5c0ab198bd9dc104f8f15969c32d8df70c86e0fa blob - ea9b319fd27f64cd69cd2b5366f4fae9b549471e blob + c20a40727445b4990e50a4f6828392f9f2be5c65 --- client.c +++ client.c @@ -724,7 +724,7 @@ static void np_errno(uint16_t tag) { int saved_errno; - char buf[64]; + char buf[NL_TEXTMAX] = {0}; saved_errno = errno;