SHA256
1
0
forked from pool/cmake
cmake/fortify-buffer-overflows.diff
OBS User autobuild 1b28bc83f1 Accepting request 32482 from devel:tools:building
Copy from devel:tools:building/cmake based on submit request 32482 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/32482
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=32
2010-02-13 15:24:19 +00:00

26 lines
682 B
Diff

--- Source/kwsys/SystemInformation.cxx
+++ Source/kwsys/SystemInformation.cxx
@@ -139,7 +139,7 @@
void RunMemoryCheck();
public:
#define VENDOR_STRING_LENGTH (12 + 1)
-#define CHIPNAME_STRING_LENGTH (48 + 1)
+#define CHIPNAME_STRING_LENGTH (70 + 1)
#define SERIALNUMBER_STRING_LENGTH (29 + 1)
typedef struct tagID
--- Utilities/cmtar/encode.c
+++ Utilities/cmtar/encode.c
@@ -32,7 +32,10 @@
int i, sum = 0;
if (t->options & TAR_GNU)
- strncpy(t->th_buf.magic, "ustar ", 8);
+ {
+ strncpy(t->th_buf.version, " ", TVERSLEN);
+ strncpy(t->th_buf.magic, "ustar", TMAGLEN);
+ }
else
{
strncpy(t->th_buf.version, TVERSION, TVERSLEN);