mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-16 06:12:08 +08:00
d5af35e3fbb5bb6555ed00e69740d52af2a4e877
This fixes a UBSAN warning later in this function where it calculates (1 << SDL_BITSPERPIXEL(surface->format)). The bpp might be >= 32 and out of range for a bit shift.
…
…
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
85.4%
C++
6.5%
Objective-C
3.4%
CMake
1.6%
Python
0.8%
Other
2%