-
Notifications
You must be signed in to change notification settings - Fork 124
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
Memory leak #109
Comments
Lines 23 to 27 in 8da4bf7
pos < height * width
pos + 1 !< height * width Maybe: int hw, pos;
hw = height * width;
for (pos = 0; pos < (hw - 1); pos++)
{
(*hash)[pos] = (image[pos] < image[pos + 1]);
}
(*hash)[hw - 1] = (image[hw - 1] < image[0]); Not? |
I will add one more such "miss", but already "from the side": Lines 74 to 81 in 8da4bf7
to: for (j = 7; j < width - 2; j += 8) { Lines 96 to 103 in 8da4bf7
to: for (i = 7; i < height - 2; i += 8) { See https://github.com/ImageProcessing-ElectronicPublications/libsmallfry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling with
CFLAGS="-fsanitize=address"
will reliably crashjpeg-hash
withthe following image file:
The text was updated successfully, but these errors were encountered: