diff options
author | Tom Knight <tomk@gentoo.org> | 2004-11-22 13:32:11 +0000 |
---|---|---|
committer | Tom Knight <tomk@gentoo.org> | 2004-11-22 13:32:11 +0000 |
commit | dca11a6300d81ae3d4c2e5af48f37332ae855685 (patch) | |
tree | f918f226148dc06784eb626e56edc239368b3a2b /app-editors/joe/files | |
parent | Bug #71849 (diff) | |
download | historical-dca11a6300d81ae3d4c2e5af48f37332ae855685.tar.gz historical-dca11a6300d81ae3d4c2e5af48f37332ae855685.tar.bz2 historical-dca11a6300d81ae3d4c2e5af48f37332ae855685.zip |
Fixed non-critical buffer overflow, closes bug #71129. Changed einstall to make install, closes bug #72023
Diffstat (limited to 'app-editors/joe/files')
-rw-r--r-- | app-editors/joe/files/digest-joe-3.0-r2 | 1 | ||||
-rw-r--r-- | app-editors/joe/files/digest-joe-3.1-r1 | 1 | ||||
-rw-r--r-- | app-editors/joe/files/joe-3.0-overflow.patch | 12 | ||||
-rw-r--r-- | app-editors/joe/files/joe-3.1-overflow.patch | 12 |
4 files changed, 26 insertions, 0 deletions
diff --git a/app-editors/joe/files/digest-joe-3.0-r2 b/app-editors/joe/files/digest-joe-3.0-r2 new file mode 100644 index 000000000000..c93bd5dd113f --- /dev/null +++ b/app-editors/joe/files/digest-joe-3.0-r2 @@ -0,0 +1 @@ +MD5 05395f2f8566351d660c48390cf31dc6 joe-3.0.tar.gz 310584 diff --git a/app-editors/joe/files/digest-joe-3.1-r1 b/app-editors/joe/files/digest-joe-3.1-r1 new file mode 100644 index 000000000000..60dd3d25ba99 --- /dev/null +++ b/app-editors/joe/files/digest-joe-3.1-r1 @@ -0,0 +1 @@ +MD5 2a6ef018870fca9b7df85401994fb0e0 joe-3.1.tar.gz 381201 diff --git a/app-editors/joe/files/joe-3.0-overflow.patch b/app-editors/joe/files/joe-3.0-overflow.patch new file mode 100644 index 000000000000..493ef8d3d011 --- /dev/null +++ b/app-editors/joe/files/joe-3.0-overflow.patch @@ -0,0 +1,12 @@ +--- rc.c~ 2004-04-23 16:02:18.000000000 +0100 ++++ rc.c 2004-11-16 20:41:33.000000000 +0000 +@@ -708,7 +708,8 @@ + int line = 0; /* Line number */ + int err = 0; /* Set to 1 if there was a syntax error */ + +- strcpy(buf, name); ++ strncpy(buf, name, sizeof(buf) - 1); ++ buf[sizeof(buf)-1] = '\0'; + #ifdef __MSDOS__ + fd = fopen((char *)buf, "rt"); + #else diff --git a/app-editors/joe/files/joe-3.1-overflow.patch b/app-editors/joe/files/joe-3.1-overflow.patch new file mode 100644 index 000000000000..c30822631d92 --- /dev/null +++ b/app-editors/joe/files/joe-3.1-overflow.patch @@ -0,0 +1,12 @@ +--- rc.c~ 2004-05-28 17:37:30.000000000 +0100 ++++ rc.c 2004-11-16 20:33:47.000000000 +0000 +@@ -810,7 +810,8 @@ + int line = 0; /* Line number */ + int err = 0; /* Set to 1 if there was a syntax error */ + +- strcpy((char *)buf, (char *)name); ++ strncpy((char *)buf, (char *)name, sizeof(buf) - 1); ++ buf[sizeof(buf)-1] = '\0'; + #ifdef __MSDOS__ + fd = fopen((char *)buf, "rt"); + #else |