STAT_BUFF_LEN
char buf[STAT_BUFF_LEN]; /* state.buf should not overflow! */
if (len >= STAT_BUFF_LEN)