Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 71aa163

Browse files
committed
Merge commit '789df0b7d0c7abd6b85db9fc5247e146e3d4ddba'
2 parents 5847651 + 789df0b commit 71aa163

39 files changed

Lines changed: 2750 additions & 652 deletions

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
1010
include(DefineCMakeDefaults)
1111
include(DefineCompilerFlags)
1212

13-
project(libssh VERSION 0.8.3 LANGUAGES C)
13+
project(libssh VERSION 0.8.4 LANGUAGES C)
1414

1515
# global needed variable
1616
set(APPLICATION_NAME ${PROJECT_NAME})
@@ -22,7 +22,7 @@ set(APPLICATION_NAME ${PROJECT_NAME})
2222
# Increment AGE. Set REVISION to 0
2323
# If the source code was changed, but there were no interface changes:
2424
# Increment REVISION.
25-
set(LIBRARY_VERSION "4.7.0")
25+
set(LIBRARY_VERSION "4.7.1")
2626
set(LIBRARY_SOVERSION "4")
2727

2828
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
ChangeLog
22
==========
33

4+
version 0.8.4 (released 2018-10-16)
5+
* Fixed CVE-2018-10933
6+
* Fixed building without globbing support
7+
* Fixed possible memory leaks
8+
* Avoid SIGPIPE on sockets
9+
410
version 0.8.3 (released 2018-09-21)
511
* Added support for rsa-sha2
612
* Added support to parse private keys in openssh container format

ConfigureChecks.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,13 @@ int main(void) {
273273
# For detecting attributes we need to treat warnings as
274274
# errors
275275
if (UNIX)
276+
# Get warnings for attributs
277+
check_c_compiler_flag("-Wattributs" REQUIRED_FLAGS_WERROR)
278+
if (REQUIRED_FLAGS_WERROR)
279+
set(CMAKE_REQUIRED_FLAGS "-Wattributes")
280+
endif()
281+
282+
# Turn warnings into errors
276283
check_c_compiler_flag("-Werror" REQUIRED_FLAGS_WERROR)
277284
if (REQUIRED_FLAGS_WERROR)
278285
set(CMAKE_REQUIRED_FLAGS "-Werror")

cmake/Modules/DefineCMakeDefaults.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ set(CMAKE_COLOR_MAKEFILE ON)
1616

1717
# Create the compile command database for clang by default
1818
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
19+
20+
# Always build with -fPIC
21+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)