xz-tools should scrap and reimplemented the code to the safer one , current one have safety and performance issue.