Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong order of operations in divide by zero example. #3

Open
tritoke opened this issue Sep 15, 2021 · 0 comments
Open

Wrong order of operations in divide by zero example. #3

tritoke opened this issue Sep 15, 2021 · 0 comments

Comments

@tritoke
Copy link

tritoke commented Sep 15, 2021

The divide by zero example actually does 0/1 not 1/0.

I couldn't really think of a good way to embed an image, so this hexdump will have to do...
You can use xxd -r hexdump.txt > divsion_by_zero.png to recover the image.

00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452  .PNG........IHDR
00000010: 0000 000e 0000 0006 0806 0000 00f3 1baf  ................
00000020: bc00 0000 3749 4441 5418 95bd 8e31 0a00  ....7IDAT....1..
00000030: 200c c4f2 ff57 ddcf e260 2be2 e0e0 608f   ....W...`+...`.
00000040: c0c1 1128 269a 2828 9862 859a 9209 4c9e  ...(&.((.b....L.
00000050: c5ad 5ce9 fb20 f68b 27af e200 db6e 9091  ..\.. ..'....n..
00000060: 8505 eb59 0000 0000 4945 4e44 ae42 6082  ...Y....IEND.B`.
00000070: 0000

This image pushes the parameters in the right order and should cause a division by zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant