27 lines
883 B
Diff
27 lines
883 B
Diff
|
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
|
||
|
|