--- liblzf/lzf_c_best.c 2015/06/29 23:34:42 1.5 +++ liblzf/lzf_c_best.c 2015/10/11 22:26:07 1.6 @@ -85,6 +85,8 @@ lit++; *op++ = *ip++; + &state; /* avoid undefined behaviour by forcing non-register class, 6.3.2.1p2 */ + while (ip < in_end - 2) { int best_l = 0;