Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Corrupted binary Output #1

Open
waseemR02 opened this issue Aug 27, 2023 · 0 comments
Open

Corrupted binary Output #1

waseemR02 opened this issue Aug 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@waseemR02
Copy link
Member

waseemR02 commented Aug 27, 2023

Fix me

Corrupted Binary

The hex editor gives out corrupted binary output from a hex file.

Steps to recreate

$ gcc *.c -o hx.out
$ ./hx.out -h2b tests/test_bin2hex.txt

The file test_bin2hex.txt is available in the tests directory

Output

�SfN!L%VQV�%

Expected Output

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever
since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five
centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release
of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including
versions of Lorem Ipsum.
.
.
.
.
.
Dolor sit amet consectetur adipiscing elit. Iaculis urna id volutpat lacus. Felis eget velit aliquet sagittis id consectetur purus ut
faucibus. Eget duis at tellus at. In metus vulputate eu scelerisque felis. Dui id ornare arcu odio ut sem nulla pharetra. Ullamcorper morbi
tincidunt ornare massa eget egestas purus. Et netus et malesuada fames ac turpis. In est ante in nibh mauris cursus mattis molestie. Massa
placerat duis ultricies lacus sed turpis. Et netus et malesuada fames ac turpis. Pulvinar mattis nunc sed blandit libero volutpat sed cras.
Dolor sit amet consectetur adipiscing elit pellentesque habitant morbi. Pellentesque diam volutpat commodo sed egestas egestas fringilla
phasellus faucibus. Facilisi morbi tempus iaculis urna id volutpat lacus laoreet non. Urna id volutpat lacus laoreet non curabitur gravida
arcu ac. Imperdiet proin fermentum leo vel orci porta non pulvinar neque. Egestas sed tempus urna et pharetra.
@waseemR02 waseemR02 added the bug Something isn't working label Aug 27, 2023
This was referenced Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant