Blame SOURCES/insecure-buffer-copy.patch

5a0433
From 81a23859ef6de8765e57fc047e103f98126c26d1 Mon Sep 17 00:00:00 2001
5a0433
From: Ondrej Dubaj <odubaj@redhat.com>
5a0433
Date: Tue, 16 Apr 2019 11:17:01 +0200
5a0433
Subject: [PATCH] fixed insecure buffer copy
5a0433
5a0433
---
5a0433
 odbcinst/SQLWriteFileDSN.c | 2 +-
5a0433
 1 file changed, 1 insertion(+), 1 deletion(-)
5a0433
5a0433
diff --git a/odbcinst/SQLWriteFileDSN.c b/odbcinst/SQLWriteFileDSN.c
5a0433
index c22a4bf..9891c73 100644
5a0433
--- a/odbcinst/SQLWriteFileDSN.c
5a0433
+++ b/odbcinst/SQLWriteFileDSN.c
5a0433
@@ -21,7 +21,7 @@ BOOL SQLWriteFileDSN(			LPCSTR	pszFileName,
5a0433
 
5a0433
 	if ( pszFileName[0] == '/' )
5a0433
 	{
5a0433
-		strcpy( szFileName, pszFileName );
5a0433
+		strncpy( szFileName, pszFileName, sizeof(szFileName) );
5a0433
 	}
5a0433
 	else
5a0433
 	{	
5a0433
-- 
5a0433
2.17.1
5a0433