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

Overflow (C26451) #15

Open
Bxaa opened this issue May 9, 2021 · 1 comment
Open

Overflow (C26451) #15

Bxaa opened this issue May 9, 2021 · 1 comment

Comments

@Bxaa
Copy link

Bxaa commented May 9, 2021

Uint8 *p = (Uint8 *)surface->pixels + y * surface->pitch + x * bpp;
-to-
Uint8 *p = (Uint8 *)surface->pixels + static_cast<__int64>(y) * surface->pitch + static_cast<__int64>(x) * bpp;

ETC...
@atheros
Copy link
Owner

atheros commented May 9, 2021

Hi, would you like to provide a pull request for this fix?

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

2 participants