We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
These attachments are available in the static archive:
Reported in version: HG 2.1 Reported for operating system, platform: Android (All), Other
On 2021-01-10 13:11:34 +0000, Yuki Okumura wrote:
Created attachment 4655 src/events/SDL_gesture.c: Patch proposal (Reported as: spurious/SDL-mirror#14 ) In function SDL_GestureDelTouch(), when deleting the final entry it might do overlapping memcpy because it might do: SDL_memcpy(&SDL_gestureTouch[0], &SDL_gestureTouch[0], sizeof(SDL_gestureTouch[i])); memcpy should not be used for overlapping region, but anyway, it does not need to be done. Attached is @dmikushin's patch that adds check and skip memcpy when removing the final entry.
Created attachment 4655 src/events/SDL_gesture.c: Patch proposal
(Reported as: spurious/SDL-mirror#14 )
In function SDL_GestureDelTouch(), when deleting the final entry it might do overlapping memcpy because it might do:
SDL_memcpy(&SDL_gestureTouch[0], &SDL_gestureTouch[0], sizeof(SDL_gestureTouch[i]));
memcpy should not be used for overlapping region, but anyway, it does not need to be done.
Attached is @dmikushin's patch that adds check and skip memcpy when removing the final entry.
On 2021-01-10 21:22:46 +0000, Sylvain wrote:
Thanks, added in : https://hg.libsdl.org/SDL/rev/17d911637a65 slightly differently: checking: (i != SDL_numGestureTouches)
Thanks, added in : https://hg.libsdl.org/SDL/rev/17d911637a65
slightly differently: checking: (i != SDL_numGestureTouches)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.1
Reported for operating system, platform: Android (All), Other
Comments on the original bug report:
On 2021-01-10 13:11:34 +0000, Yuki Okumura wrote:
On 2021-01-10 21:22:46 +0000, Sylvain wrote:
The text was updated successfully, but these errors were encountered: