diff options
| author | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-08 22:47:27 +0100 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-09 11:55:49 +0100 |
| commit | 9b1499bd9c610e813b1ef685ccca74a37d1362ba (patch) | |
| tree | 78bc2691eda468f476768e3c0de03bcaf58163b3 /testing/id3lib/CVE-2007-4460.patch | |
| parent | fb35b14863cfd9f7be8d826d96e2108efd3a0640 (diff) | |
| download | aports-9b1499bd9c610e813b1ef685ccca74a37d1362ba.tar.bz2 aports-9b1499bd9c610e813b1ef685ccca74a37d1362ba.tar.xz | |
community/id3lib: move from testing
Diffstat (limited to 'testing/id3lib/CVE-2007-4460.patch')
| -rw-r--r-- | testing/id3lib/CVE-2007-4460.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/testing/id3lib/CVE-2007-4460.patch b/testing/id3lib/CVE-2007-4460.patch deleted file mode 100644 index 7fcab02a87..0000000000 --- a/testing/id3lib/CVE-2007-4460.patch +++ /dev/null @@ -1,55 +0,0 @@ -This patch fixes an issues where temporary files were created in an insecure -way. - -It was first intruduced in version 3.8.3-7 and fixes -http://bugs.debian.org/438540 ---- a/src/tag_file.cpp -+++ b/src/tag_file.cpp -@@ -242,8 +242,8 @@ - strcpy(sTempFile, filename.c_str()); - strcat(sTempFile, sTmpSuffix.c_str()); - --#if ((defined(__GNUC__) && __GNUC__ >= 3 ) || !defined(HAVE_MKSTEMP)) -- // This section is for Windows folk && gcc 3.x folk -+#if !defined(HAVE_MKSTEMP) -+ // This section is for Windows folk - fstream tmpOut; - createFile(sTempFile, tmpOut); - -@@ -257,7 +257,7 @@ - tmpOut.write((char *)tmpBuffer, nBytes); - } - --#else //((defined(__GNUC__) && __GNUC__ >= 3 ) || !defined(HAVE_MKSTEMP)) -+#else //!defined(HAVE_MKSTEMP) - - // else we gotta make a temp file, copy the tag into it, copy the - // rest of the old file after the tag, delete the old file, rename -@@ -270,7 +270,7 @@ - //ID3_THROW_DESC(ID3E_NoFile, "couldn't open temp file"); - } - -- ofstream tmpOut(fd); -+ ofstream tmpOut(sTempFile); - if (!tmpOut) - { - tmpOut.close(); -@@ -285,14 +285,14 @@ - uchar tmpBuffer[BUFSIZ]; - while (file) - { -- file.read(tmpBuffer, BUFSIZ); -+ file.read((char *)tmpBuffer, BUFSIZ); - size_t nBytes = file.gcount(); -- tmpOut.write(tmpBuffer, nBytes); -+ tmpOut.write((char *)tmpBuffer, nBytes); - } - - close(fd); //closes the file - --#endif ////((defined(__GNUC__) && __GNUC__ >= 3 ) || !defined(HAVE_MKSTEMP)) -+#endif ////!defined(HAVE_MKSTEMP) - - tmpOut.close(); - file.close(); - |
