Mercurial > hg > orthanc
changeset 4671:42e1f5bde40b
added sanity check
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 28 May 2021 18:44:00 +0200 |
parents | b12faca76a52 |
children | d9942d48fea7 |
files | OrthancFramework/Sources/Compression/ZipWriter.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Compression/ZipWriter.cpp Fri May 28 18:26:40 2021 +0200 +++ b/OrthancFramework/Sources/Compression/ZipWriter.cpp Fri May 28 18:44:00 2021 +0200 @@ -461,6 +461,11 @@ else if (outputStream_.get() != NULL) { // New in Orthanc 1.9.4 + if (IsAppendToExisting()) + { + throw OrthancException(ErrorCode_BadSequenceOfCalls, "Cannot append to output streams"); + } + hasFileInZip_ = false; zlib_filefunc64_def funcs;