[tor-commits] [tor/master] Fix undefined behavior caused by memory overlap