From: | "Ryan Hill (dirtyepic)" <dirtyepic@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/gegl/files: gegl-0.1.2-buffer-overflow.patch |
Date: | Sun, 22 Aug 2010 05:36:43 |
Message-Id: | 20100822053639.484F02004E@flycatcher.gentoo.org |
1 | dirtyepic 10/08/22 05:36:39 |
2 | |
3 | Added: gegl-0.1.2-buffer-overflow.patch |
4 | Log: |
5 | Fix buffer overflow in gegl_buffer_header_init() (bug #319789). |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-libs/gegl/files/gegl-0.1.2-buffer-overflow.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gegl/files/gegl-0.1.2-buffer-overflow.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gegl/files/gegl-0.1.2-buffer-overflow.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: gegl-0.1.2-buffer-overflow.patch |
15 | =================================================================== |
16 | https://bugs.gentoo.org/319789 |
17 | http://git.gnome.org/browse/gegl/commit/?id=e287b94c8cb078db86d883395bd089002b405e18 |
18 | |
19 | --- a/gegl/buffer/gegl-buffer-save.c |
20 | +++ b/gegl/buffer/gegl-buffer-save.c |
21 | @@ -196,7 +196,7 @@ gegl_buffer_header_init (GeglBufferHeader *header, |
22 | gint bpp, |
23 | Babl* format) |
24 | { |
25 | - strcpy (header->magic, "GEGL"); |
26 | + memcpy (header->magic, "GEGL", 4); |
27 | |
28 | header->flags = GEGL_FLAG_HEADER; |
29 | header->tile_width = tile_width; |