From 38320ac7ba09e2fbafe6c2c57ad42c5149547369 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 4 Mar 2014 17:38:28 +0100 Subject: [PATCH] Fix CVE-2014-0017. --- .gitignore | 1 + ...sh-0.5.4-disable-latex-documentation.patch | 67 ------------------- libssh-0.5.4-fix-html-doc-generation.patch | 16 ----- libssh.spec | 7 +- sources | 2 +- 5 files changed, 7 insertions(+), 86 deletions(-) delete mode 100644 libssh-0.5.4-disable-latex-documentation.patch delete mode 100644 libssh-0.5.4-fix-html-doc-generation.patch diff --git a/.gitignore b/.gitignore index 0c4eb74..920f538 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ libssh-0.4.4.tar.gz.asc /libssh-0.5.5.tar.asc /libssh-0.6.0.tar.xz /libssh-0.6.1.tar.xz +/libssh-0.6.3.tar.xz diff --git a/libssh-0.5.4-disable-latex-documentation.patch b/libssh-0.5.4-disable-latex-documentation.patch deleted file mode 100644 index 40141a6..0000000 --- a/libssh-0.5.4-disable-latex-documentation.patch +++ /dev/null @@ -1,67 +0,0 @@ -Description: Be sure we never build LaTeX documentation -Author: Laurent Bigonville -Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=622108 - -Index: libssh-0.5.5/doc/doxy.config.in -=================================================================== ---- libssh-0.5.5.orig/doc/doxy.config.in -+++ libssh-0.5.5/doc/doxy.config.in -@@ -1015,7 +1015,7 @@ SEARCHENGINE = NO - # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will - # generate Latex output. - --GENERATE_LATEX = @DOXYFILE_LATEX@ -+GENERATE_LATEX = NO - - # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. - # If a relative path is entered the value of OUTPUT_DIRECTORY will be -Index: libssh-0.5.5/cmake/Modules/UseDoxygen.cmake -=================================================================== ---- libssh-0.5.5.orig/cmake/Modules/UseDoxygen.cmake -+++ libssh-0.5.5/cmake/Modules/UseDoxygen.cmake -@@ -63,27 +63,27 @@ if(DOXYGEN_FOUND AND DOXYFILE_IN_FOUND) - set(DOXYFILE_PDFLATEX FALSE) - set(DOXYFILE_DOT FALSE) - -- find_package(LATEX) -- if(LATEX_COMPILER AND MAKEINDEX_COMPILER) -- set(DOXYFILE_LATEX TRUE) -- usedoxygen_set_default(DOXYFILE_LATEX_DIR "latex") -+ #find_package(LATEX) -+ #if(LATEX_COMPILER AND MAKEINDEX_COMPILER) -+ # set(DOXYFILE_LATEX TRUE) -+ # usedoxygen_set_default(DOXYFILE_LATEX_DIR "latex") - -- set_property(DIRECTORY APPEND PROPERTY -- ADDITIONAL_MAKE_CLEAN_FILES -- "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") -+ # set_property(DIRECTORY APPEND PROPERTY -+ # ADDITIONAL_MAKE_CLEAN_FILES -+ # "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") - -- if(PDFLATEX_COMPILER) -- set(DOXYFILE_PDFLATEX TRUE) -- endif() -- if(DOXYGEN_DOT_EXECUTABLE) -- set(DOXYFILE_DOT TRUE) -- endif() -+ # if(PDFLATEX_COMPILER) -+ # set(DOXYFILE_PDFLATEX TRUE) -+ # endif() -+ # if(DOXYGEN_DOT_EXECUTABLE) -+ # set(DOXYFILE_DOT TRUE) -+ # endif() - -- add_custom_command(TARGET doxygen -- POST_BUILD -- COMMAND ${CMAKE_MAKE_PROGRAM} -- WORKING_DIRECTORY "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") -- endif() -+ # add_custom_command(TARGET doxygen -+ # POST_BUILD -+ # COMMAND ${CMAKE_MAKE_PROGRAM} -+ # WORKING_DIRECTORY "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") -+ #endif() - - configure_file(${DOXYFILE_IN} ${CMAKE_CURRENT_BINARY_DIR}/doxy.config ESCAPE_QUOTES IMMEDIATE @ONLY) - if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.trac.in) diff --git a/libssh-0.5.4-fix-html-doc-generation.patch b/libssh-0.5.4-fix-html-doc-generation.patch deleted file mode 100644 index c63f002..0000000 --- a/libssh-0.5.4-fix-html-doc-generation.patch +++ /dev/null @@ -1,16 +0,0 @@ -Description: Do not exclude "*/build/*" directory as buildd use that path -Author: Laurent Bigonville -Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libssh/+bug/821437 - ---- a/doc/doxy.config.in -+++ b/doc/doxy.config.in -@@ -631,8 +631,7 @@ - - EXCLUDE_PATTERNS = */.git/* \ - */.svn/* \ -- */cmake/* \ -- */build/* -+ */cmake/* - - # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names - # (namespaces, classes, functions, etc.) that should be excluded from the diff --git a/libssh.spec b/libssh.spec index 4a90d5a..cd2e1af 100644 --- a/libssh.spec +++ b/libssh.spec @@ -1,5 +1,5 @@ Name: libssh -Version: 0.6.1 +Version: 0.6.3 Release: 1%{?dist} Summary: A library implementing the SSH protocol License: LGPLv2+ @@ -7,7 +7,7 @@ URL: http://www.libssh.org Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Source0: https://red.libssh.org/attachments/download/81/libssh-0.6.1.tar.xz +Source0: https://red.libssh.org/attachments/download/87/libssh-0.6.3.tar.xz BuildRequires: cmake BuildRequires: doxygen @@ -83,6 +83,9 @@ rm -rf %{buildroot} %{_libdir}/libssh_threads.so %changelog +* Tue Mar 04 2014 - Andreas Schneider - 0.6.3-1 +- Fix CVE-2014-0017. + * Mon Feb 10 2014 - Andreas Schneider - 0.6.1-1 - Update to version 0.6.1. - resolves: #1056757 - Fix scp mode. diff --git a/sources b/sources index 8faa6a2..af64935 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4a6d56735c1b08a8a18c3fc3967f2bcd libssh-0.6.1.tar.xz +66cf16e77f60913b4d54f18c92cdbf71 libssh-0.6.3.tar.xz