Projects
openEuler:Mainline
SDL2
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:SDL2.spec
Changed
@@ -1,6 +1,6 @@ Name: SDL2 Version: 2.0.12 -Release: 4 +Release: 7 Summary: Cross-platform multimedia library License: zlib and MIT URL: http://www.libsdl.org/ @@ -12,13 +12,18 @@ #https://github.com/libsdl-org/SDL/commit/a7ff6e96155f550a5597621ebeddd03c98aa9294 Patch0003: CVE-2020-14409_CVE-2020-14410.patch Patch6000: backport-CVE-2021-33657.patch +Patch6001: CVE-2022-4743.patch BuildRequires: alsa-lib-devel audiofile-devel mesa-libGL-devel BuildRequires: mesa-libGLU-devel mesa-libEGL-devel libglvnd-devel BuildRequires: libXext-devel libX11-devel libXi-devel libXrandr-devel BuildRequires: libXrender-devel libXScrnSaver-devel libusb-devel BuildRequires: libXinerama-devel libXcursor-devel systemd-devel +%ifarch loongarch64 +BuildRequires: pkgconfig(libpulse-simple) +%else BuildRequires: pkgconfig(libpulse-simple) pkgconfig(jack) +%endif BuildRequires: pkgconfig(dbus-1) pkgconfig(ibus-1.0) BuildRequires: pkgconfig(wayland-client) pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-cursor) pkgconfig(wayland-protocols) @@ -93,6 +98,15 @@ %{_libdir}/lib*.a %changelog +* Mon Apr 24 2023 panchenbo <panchenbo@kylinsec.com.cn> - 2.0.12-7 +- add sw_64 support + +* Thu Mar 02 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 2.0.12-6 +- add loongarch support + +* Tue Jan 10 2023 jiangpeng <jiangpeng01@ncti-gba.cn> - 2.0.12-5 +- fix CVE-2022-4743 + * Mon Apr 11 2022 yaoxin <yaoxin30@h-partners.com> - 2.0.12-4 - Fix CVE-2020-14409 CVE-2020-14410
View file
_service:tar_scm:CVE-2022-4743.patch
Added
@@ -0,0 +1,33 @@ +From 00b67f55727bc0944c3266e2b875440da132ce4b Mon Sep 17 00:00:00 2001 +From: zhailiangliang <zhailiangliang@loongson.cn> +Date: Wed, 21 Sep 2022 10:30:38 +0800 +Subject: PATCH Fix potential memory leak in GLES_CreateTexture + +--- + src/render/opengles/SDL_render_gles.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/render/opengles/SDL_render_gles.c b/src/render/opengles/SDL_render_gles.c +index a5fbab309eda..ba08a46e2805 100644 +--- a/src/render/opengles/SDL_render_gles.c ++++ b/src/render/opengles/SDL_render_gles.c +@@ -359,6 +359,9 @@ GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) + renderdata->glGenTextures(1, &data->texture); + result = renderdata->glGetError(); + if (result != GL_NO_ERROR) { ++ if (texture->access == SDL_TEXTUREACCESS_STREAMING) { ++ SDL_free(data->pixels); ++ } + SDL_free(data); + return GLES_SetError("glGenTextures()", result); + } +@@ -387,6 +390,9 @@ GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture) + + result = renderdata->glGetError(); + if (result != GL_NO_ERROR) { ++ if (texture->access == SDL_TEXTUREACCESS_STREAMING) { ++ SDL_free(data->pixels); ++ } + SDL_free(data); + return GLES_SetError("glTexImage2D()", result); + }
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/SDL2.git</param> - <param name="revision">611ce9c24836f2de72e43031b5eeb6c16377b85c</param> + <param name="revision">master</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
View file
_service:tar_scm:SDL_config.h
Changed
@@ -60,6 +60,8 @@ #include "SDL_config-arm.h" #elif defined(__alpha__) #include "SDL_config-alpha.h" +#elif defined(__sw_64__) +#include "SDL_config-sw_64.h" #elif defined(__sparc__) && defined (__arch64__) #include "SDL_config-sparc64.h" #elif defined(__sparc__) @@ -76,6 +78,8 @@ #include "SDL_config-mips.h" #elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64 #include "SDL_config-riscv64.h" +#elif defined(__loongarch64) +#include "SDL_config-loongarch64.h" #else #error "The SDL2-devel package is not usable with the architecture." #endif
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2