Skip to content

Fix allocation size on tiger final block - #32

Open
mdulin2 wants to merge 1 commit into
iagox86:masterfrom
mdulin2:master
Open

Fix allocation size on tiger final block#32
mdulin2 wants to merge 1 commit into
iagox86:masterfrom
mdulin2:master

Conversation

@mdulin2

@mdulin2 mdulin2 commented Sep 2, 2026

Copy link
Copy Markdown

On the tiger hash function, the final block can have at most 72 bytes written to it because of the added length byte. The current allocation is 64 bytes, and this leads to memory corruption.

This PR just adds an extra 8 bytes to the heap allocation.

P.S. Great tool! I was trying to make a browser port of this for a CTF I run for students and was really blown away by the amount of support for the various functions it included.

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

Successfully merging this pull request may close these issues.

1 participant