Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated version to 1.2.7
 * Fixed buffer overflow in GIF loading code, discovered by Michael Skladnikiewicz
  • Loading branch information
slouken committed Dec 28, 2007
1 parent eaaa392 commit 585dbc9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES
@@ -1,3 +1,7 @@
1.2.7:
Sam Lantinga - Fri Dec 28 08:34:54 PST 2007
* Fixed buffer overflow in GIF loading code, discovered by Michael Skladnikiewicz

1.2.6:
Sam lantinga - Wed Jul 18 00:30:32 PDT 2007
* Improved detection of libjpeg, libpng, and libtiff at configure time
Expand Down
4 changes: 4 additions & 0 deletions IMG_gif.c
Expand Up @@ -418,6 +418,10 @@ LWZReadByte(SDL_RWops *src, int flag, int input_code_size)
static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp;
register int i;

/* Fixed buffer overflow found by Michael Skladnikiewicz */
if (input_code_size > MAX_LWZ_BITS)
return -1;

if (flag) {
set_code_size = input_code_size;
code_size = set_code_size + 1;
Expand Down
2 changes: 1 addition & 1 deletion SDL_image.h
Expand Up @@ -38,7 +38,7 @@ extern "C" {
*/
#define SDL_IMAGE_MAJOR_VERSION 1
#define SDL_IMAGE_MINOR_VERSION 2
#define SDL_IMAGE_PATCHLEVEL 6
#define SDL_IMAGE_PATCHLEVEL 7

/* This macro can be used to fill a version structure with the compile-time
* version of the SDL_image library.
Expand Down
Binary file modified VisualC.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions configure.in
Expand Up @@ -13,9 +13,9 @@ dnl Set various version strings - taken gratefully from the GTk sources

MAJOR_VERSION=1
MINOR_VERSION=2
MICRO_VERSION=6
INTERFACE_AGE=5
BINARY_AGE=6
MICRO_VERSION=7
INTERFACE_AGE=6
BINARY_AGE=7
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION

AC_SUBST(MAJOR_VERSION)
Expand Down

0 comments on commit 585dbc9

Please sign in to comment.