Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Fix sha1 hash #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix sha1 hash #2

wants to merge 1 commit into from

Conversation

VojtechVitek
Copy link
Collaborator

I found an interesting bug in generating hashes.

Before this fix - Fprintf() expects more arguments and thus generates some mess from escaped URL:

https://imgry.pressly.com/529dfe4b6461733d2e280000//fetch?url=http%!A(MISSING)%!F(MISSING)%!F(MISSING)icdn2.digitaltrends.com%!F(MISSING)image%!F(MISSING)amazon-prime-drone-2-600x315-c.jpg&size=640x416&op=cover

6a76e0438c66a58472bd603fecbb585b72d2d1c6

After this fix:

https://imgry.pressly.com/529dfe4b6461733d2e280000//fetch?url=http%3A%2F%2Ficdn2.digitaltrends.com%2Fimage%2Famazon-prime-drone-2-600x315-c.jpg&size=640x416&op=cover

1683457f5bf48189b498bb4af55bf1f97df7bbad

@pkieltyka
Copy link
Contributor

btw, is this really a problem....? can you spew the different results to see if they are different

@VojtechVitek
Copy link
Collaborator Author

It may create a possible conflict, but the probability is very low. It's rather low priority bug, but imho still bug.

I know we probably don't want to fix this, as we'd break current hash values and thus all the imgry hits :/

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

Successfully merging this pull request may close these issues.

2 participants