ZstdCompressionAlgorithm: handle ZSTD_error_dstSize_tooSmall.

Change-Id: Ib6dca7ac8457afae845fad24514945b4ecd521cc
Reviewed-on: https://review.haiku-os.org/509
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Jérôme Duval 2018-09-04 14:28:48 +02:00 committed by Augustin Cavalier
parent 64e47d613c
commit 691ef6069c

View File

@ -424,6 +424,8 @@ BZstdCompressionAlgorithm::_TranslateZstdError(size_t error)
return B_BAD_DATA;
case ZSTD_error_version_unsupported:
return B_BAD_VALUE;
case ZSTD_error_dstSize_tooSmall:
return B_BUFFER_OVERFLOW;
default:
return B_ERROR;
}