Skip to content

Commit

Permalink
fix: invalid watermark crashes sipi (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic authored Jan 24, 2024
1 parent 4e0d50f commit 39dc0e8
Show file tree
Hide file tree
Showing 12 changed files with 792 additions and 715 deletions.
6 changes: 3 additions & 3 deletions ext/zlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ endif()

ExternalProject_Add(project_zlib
INSTALL_DIR ${COMMON_LOCAL}
URL http://zlib.net/zlib-1.3.tar.gz
URL http://zlib.net/zlib-1.3.1.tar.gz
DOWNLOAD_DIR ${COMMON_SRCS}/downloads
${timestamp_policy}
SOURCE_DIR ${COMMON_SRCS}/zlib-1.2.13
CONFIGURE_COMMAND ${COMMON_SRCS}/zlib-1.2.13/configure
SOURCE_DIR ${COMMON_SRCS}/zlib
CONFIGURE_COMMAND ${COMMON_SRCS}/zlib/configure
--prefix=${COMMON_LOCAL}
--static
# --shared
Expand Down
4 changes: 2 additions & 2 deletions include/SipiImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,9 @@ class SipiImageError : public std::exception {
/*!
* Add a watermark to a file...
*
* \param[in] wmfilename Path to watermakfile (which must be a TIFF file at the moment)
* \param[in] wmfilename Path to watermarkfile (which must be a TIFF file at the moment)
*/
bool add_watermark(const std::string &wmfilename);
void add_watermark(const std::string &wmfilename);


/*!
Expand Down
Loading

0 comments on commit 39dc0e8

Please sign in to comment.