public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-libs/gegl/files: gegl-0.1.2-buffer-overflow.patch
@ 2010-08-22  5:36 Ryan Hill (dirtyepic)
  0 siblings, 0 replies; only message in thread
From: Ryan Hill (dirtyepic) @ 2010-08-22  5:36 UTC (permalink / raw
  To: gentoo-commits

dirtyepic    10/08/22 05:36:39

  Added:                gegl-0.1.2-buffer-overflow.patch
  Log:
  Fix buffer overflow in gegl_buffer_header_init() (bug #319789).
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-libs/gegl/files/gegl-0.1.2-buffer-overflow.patch

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
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

Index: gegl-0.1.2-buffer-overflow.patch
===================================================================
https://bugs.gentoo.org/319789
http://git.gnome.org/browse/gegl/commit/?id=e287b94c8cb078db86d883395bd089002b405e18

--- 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;






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-22  5:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-22  5:36 [gentoo-commits] gentoo-x86 commit in media-libs/gegl/files: gegl-0.1.2-buffer-overflow.patch Ryan Hill (dirtyepic)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox