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

Invalid cast in ml_gdk_pixbuf_get_pixels causes segfault #184

Open
tleedjarv opened this issue Nov 1, 2024 · 0 comments
Open

Invalid cast in ml_gdk_pixbuf_get_pixels causes segfault #184

tleedjarv opened this issue Nov 1, 2024 · 0 comments

Comments

@tleedjarv
Copy link

long pixels = (long)gdk_pixbuf_get_pixels (GdkPixbuf_val(pixbuf));
is an invalid cast from pointer to long. This causes a segfault on Win64 (at least) where long is a 32-bit type.

It seems to me that the calculation and use of ofs (the apparent reason of the cast above) may not be needed at all.

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