Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes what rust-lang#277 tried to fixed, changing the name alone wont fix the problem as the renamed file still contains the GZ magic number and will still be detected by a file scanner as a corrupt GZ file. Used the following to generate the hex file. ``` fn bin_to_hex(bin_reader: impl Read, hex_writer: impl Write) { let bin_reader = BufReader::new( bin_reader); let mut hex_writer = BufWriter::new( hex_writer); for byte in bin_reader.bytes() { let byte = byte.unwrap(); write!(hex_writer, "{:X} ", byte).unwrap(); } hex_writer.flush().unwrap(); } ```
- Loading branch information