[tor-commits] [tor/master] Fix two other cases of (buf + N > end) pattern