mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-30 08:08:35 -05:00
It was possible for "git unpack-objects" and "git index-pack" to make an unaligned access, which has been corrected. * jk/pack-header-parse-alignment-fix: index-pack, unpack-objects: use skip_prefix to avoid magic number index-pack, unpack-objects: use get_be32() for reading pack header parse_pack_header_option(): avoid unaligned memory writes packfile: factor out --pack_header argument parsing bswap.h: squelch potential sparse -Wcast-truncate warnings These patches have actually been rebased onto v2.46.2 for easier merging. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>