[PATCH 21.4] gnuclient buffer overflow fixes