Accepting request 33134 from graphics

checked in (request 33134)

OBS-URL: https://build.opensuse.org/request/show/33134
OBS-URL: https://build.opensuse.org/package/show/graphics/gegl?expand=0&rev=12
This commit is contained in:
OBS User autobuild 2010-02-23 00:18:04 +00:00 committed by Git OBS Bridge
parent 6325442ec1
commit 87e6471d07
3 changed files with 0 additions and 34 deletions

View File

@ -1,26 +0,0 @@
From 66d2ae5782d1d13224294ecf20e6f63680903550 Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@gnome.org>
Date: Mon, 22 Feb 2010 12:57:00 +0100
Subject: [PATCH] Use memcpy instead of strcpy to avoid buffer overflow
https://bugzilla.gnome.org/show_bug.cgi?id=610680
---
gegl/buffer/gegl-buffer-save.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gegl/buffer/gegl-buffer-save.c b/gegl/buffer/gegl-buffer-save.c
index 85c7894..aff175c 100644
--- a/gegl/buffer/gegl-buffer-save.c
+++ b/gegl/buffer/gegl-buffer-save.c
@@ -196,7 +196,7 @@ gegl_buffer_header_init (GeglBufferHeader *header,
gint bpp,
Babl* format)
{
- strcpy (header->magic, "GEGL");
+ memcpy (header->magic, "GEGL", 4);
header->flags = GEGL_FLAG_HEADER;
header->tile_width = tile_width;
--
1.6.6.1

View File

@ -1,8 +1,3 @@
-------------------------------------------------------------------
Mon Feb 22 12:59:17 CET 2010 - vuntz@opensuse.org
- Add gegl-fix-overflow.patch to fix overflow found by gcc 4.5.
-------------------------------------------------------------------
Wed Feb 10 23:42:49 CET 2010 - vuntz@opensuse.org

View File

@ -49,8 +49,6 @@ Summary: Generic Graphics Library
Source: ftp://ftp.gimp.org/pub/gegl/v0.0/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gegl-fix-build.patch bgo609706 vuntz@opensuse.org -- Remove unneeded printf, which fixes build
Patch0: gegl-fix-build.patch
# PATCH-FIX-UPSTREAM gegl-fix-overflow.patch bgo610680 vuntz@opensuse.org -- Fix overflow found by gcc 4.5
Patch1: gegl-fix-overflow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libgegl-0_1-0 = %{version}-%{release}
@ -128,7 +126,6 @@ input and output.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure\