Simple Directmedia Layer
Go to file
Sam Lantinga 8bc59f87ec Fixed CVE-2019-7635 and bug 4498 - Heap-Buffer Overflow in Blit1to4 pertaining to SDL_blit_1.c
Petr Pisar

The root cause is that the POC BMP file declares 3 colors used and 4 bpp palette, but pixel at line 28 and column 1 (counted from 0) has color number 3. Then when the image loaded into a surface is passed to SDL_DisplayFormat(), in order to convert it to a video format, a used bliting function looks up a color number 3 in a 3-element long color bliting map. (The map obviously has the same number entries as the surface format has colors.)

Proper fix should refuse broken BMP images that have a pixel with a color index higher than declared number of "used" colors. Possibly more advanced fix could try to relocate the out-of-range color index into a vacant index (if such exists).
2019-03-16 18:34:33 -07:00
acinclude Added missing PKG_CONFIG macros 2019-03-16 17:39:15 -07:00
android-project Android: minor comment update 2019-03-13 14:08:21 +01:00
android-project-ant
build-scripts Updated minimum supported Android version to API 16, to match latest NDK toolchain 2019-01-12 12:11:06 -08:00
cmake mir: Removed mir client support. 2018-11-02 21:34:17 -04:00
debian Updated copyright for 2019 2019-01-04 22:01:14 -08:00
docs Updated minimum supported Android version to API 16, to match latest NDK toolchain 2019-01-12 12:11:06 -08:00
include hidapi: Add support for Wii U/Switch USB GameCube controller adapter. 2019-03-12 20:27:54 -04:00
src Fixed CVE-2019-7635 and bug 4498 - Heap-Buffer Overflow in Blit1to4 pertaining to SDL_blit_1.c 2019-03-16 18:34:33 -07:00
test testgesture: cleaned up code formatting, etc. 2019-03-15 22:39:31 -04:00
VisualC testgesture: Add dependency to SDLtest to Visual Studio project. 2019-03-15 23:54:42 -04:00
VisualC-WinRT
visualtest
wayland-protocols wayland: ask xdg-decoration protocol extension to use server-side decorations if possible. 2018-11-04 21:08:40 +01:00
Xcode Updated copyright for 2019 2019-01-04 22:01:14 -08:00
Xcode-iOS fix permissions 2018-11-15 07:20:02 +03:00
.hgignore
Android.mk Initial Android OpenSL ES implementation, contributed by ANTA 2019-01-12 12:18:44 -08:00
autogen.sh
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt events: Let arbitrary signals to simulate iOS/Android backgrounding events. 2019-03-15 15:51:05 -04:00
configure Added missing PKG_CONFIG macros 2019-03-16 17:39:15 -07:00
configure.in Fixed bug 4452 - Please replace AC_HELP_STRING with AS_HELP_STRING 2019-03-16 17:47:59 -07:00
COPYING.txt Updated copyright for 2019 2019-01-04 22:01:14 -08:00
CREDITS.txt
INSTALL.txt
Makefile.in Fixed bug 4379 - fix parallel build with slibtool 2018-12-08 11:22:50 -08:00
Makefile.minimal
Makefile.os2 minor update to Makefile.os2, added a test/Makefile.os2. 2018-11-20 10:55:00 +03:00
Makefile.pandora
Makefile.psp
Makefile.wiz
README-SDL.txt
README.txt
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in
SDL2.spec.in
SDL2Config.cmake
TODO.txt
VisualC.html
WhatsNew.txt Added patch note for SDL_GameControllerGetPlayerIndex() and friends 2018-10-26 09:49:27 -07:00

                         Simple DirectMedia Layer

                                  (SDL)

                                Version 2.0

---
https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed
to provide low level access to audio, keyboard, mouse, joystick, and graphics
hardware via OpenGL and Direct3D. It is used by video playback software,
emulators, and popular games including Valve's award winning catalog
and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting
with README.md

Enjoy!
	Sam Lantinga				(slouken@libsdl.org)