Mercurial > hg > orthanc
diff Resources/CMake/DcmtkConfiguration.cmake @ 2193:6ac6193a7935
fix a vulnerability in dcmtk 3.6.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Dec 2016 16:04:00 +0100 |
parents | 8b51b133bb8b |
children | 9f3414878c02 |
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake Wed Nov 30 09:03:12 2016 +0100 +++ b/Resources/CMake/DcmtkConfiguration.cmake Fri Dec 02 16:04:00 2016 +0100 @@ -50,6 +50,17 @@ else() message("Using the dictionary of private tags from DCMTK 3.6.0") endif() + + # Patches specific to DCMTK 3.6.0 + execute_process( + COMMAND ${PATCH_EXECUTABLE} -p0 -N -i ${ORTHANC_ROOT}/Resources/Patches/dcmtk-3.6.0-dulparse-vulnerability.patch + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + RESULT_VARIABLE Failure + ) + + if (Failure) + message(FATAL_ERROR "Error while patching a file") + endif() endif()