diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-03-20 03:41:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-03-20 03:41:44 +0000 |
commit | b6a5b02ae6ec9aa54400f3925621947b9c24e7af (patch) | |
tree | 5b5139ee0882ac6c46e0bc49da00642950af71b1 /media-libs/libsdl/files | |
parent | old (diff) | |
download | gentoo-2-b6a5b02ae6ec9aa54400f3925621947b9c24e7af.tar.gz gentoo-2-b6a5b02ae6ec9aa54400f3925621947b9c24e7af.tar.bz2 gentoo-2-b6a5b02ae6ec9aa54400f3925621947b9c24e7af.zip |
Fix from upstream for invalid memory freeing in cdrom code #169477 by Peter Alfredsen.
(Portage version: 2.1.2.2)
Diffstat (limited to 'media-libs/libsdl/files')
-rw-r--r-- | media-libs/libsdl/files/digest-libsdl-1.2.11-r2 | 3 | ||||
-rw-r--r-- | media-libs/libsdl/files/libsdl-1.2.11-cdrom-correct-free-func.patch | 26 |
2 files changed, 29 insertions, 0 deletions
diff --git a/media-libs/libsdl/files/digest-libsdl-1.2.11-r2 b/media-libs/libsdl/files/digest-libsdl-1.2.11-r2 new file mode 100644 index 000000000000..7c37b8fdf059 --- /dev/null +++ b/media-libs/libsdl/files/digest-libsdl-1.2.11-r2 @@ -0,0 +1,3 @@ +MD5 418b42956b7cd103bfab1b9077ccc149 SDL-1.2.11.tar.gz 2796407 +RMD160 91dc8877224415a4ba59e1de57c31861e550d644 SDL-1.2.11.tar.gz 2796407 +SHA256 6985823287b224b57390b1c1b6cbc54cc9a7d7757fbf9934ed20754b4cd23730 SDL-1.2.11.tar.gz 2796407 diff --git a/media-libs/libsdl/files/libsdl-1.2.11-cdrom-correct-free-func.patch b/media-libs/libsdl/files/libsdl-1.2.11-cdrom-correct-free-func.patch new file mode 100644 index 000000000000..90b35faf19c2 --- /dev/null +++ b/media-libs/libsdl/files/libsdl-1.2.11-cdrom-correct-free-func.patch @@ -0,0 +1,26 @@ +http://bugs.gentoo.org/169477 + +Revision 2744 +Modified Tue Sep 5 19:31:48 2006 UTC (6 months, 1 week ago) by pmandin +Use correct function to free allocated mem + +--- branches/SDL-1.2/src/cdrom/linux/SDL_syscdrom.c 2006/07/10 21:03:59 2608 ++++ branches/SDL-1.2/src/cdrom/linux/SDL_syscdrom.c 2006/09/05 19:31:48 2744 +@@ -218,7 +218,7 @@ + if ( SDL_strcmp(mnt_type, MNTTYPE_SUPER) == 0 ) { + tmp = SDL_strstr(mntent->mnt_opts, "fs="); + if ( tmp ) { +- SDL_free(mnt_type); ++ SDL_stack_free(mnt_type); + mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); + if ( mnt_type ) { + tmp = SDL_strchr(mnt_type, ','); +@@ -229,7 +229,7 @@ + } + tmp = SDL_strstr(mntent->mnt_opts, "dev="); + if ( tmp ) { +- SDL_free(mnt_dev); ++ SDL_stack_free(mnt_dev); + mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); + if ( mnt_dev ) { + tmp = SDL_strchr(mnt_dev, ','); |