Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bus error in bcftools merge on armhf (32-bit hard-float)
While 32-bit ARM mostly allows unaligned access, under certain conditions it can produce a bus error on unaligned access to a float. To prevent this from happening in bcftools merge, update code that accesses data via bcf_info_t::vptr and bcf_fmt_t::p to use uint8_t pointers and the le_to_i* macros in htslib/hts_endian.h. As a side-effect, this also makes bcftools merge work on big-endian platforms should anyone attempt to run it on one. Fixes samtools#2036 (test_vcf_merge failures on arm 32-bit with FPU: Bus error).
- Loading branch information