瀏覽代碼

Fix buffer overflow problem in ft_build.c
Patch by Fredrik Roubert, 09 Oct 2006

Wolfgang Denk 18 年之前
父節點
當前提交
d262a92f0f
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 3 0
      CHANGELOG
  2. 3 1
      common/ft_build.c

+ 3 - 0
CHANGELOG

@@ -2,6 +2,9 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Fix buffer overflow problem in ft_build.c
+  Patch by Fredrik Roubert, 09 Oct 2006
+
 * Make bootp implementation RFC3046 compliant
   Patch by Joakim Larsson, 27 Jun 2006
 

+ 3 - 1
common/ft_build.c

@@ -293,7 +293,9 @@ static void print_data(const void *data, int len)
 		return;
 
 	if (is_printable_string(data, len)) {
-		printf(" = \"%s\"", (char *)data);
+		puts(" = \"");
+		puts(data);
+		puts("\"");
 		return;
 	}