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
parent dc1991b5d5
commit 89780a095e

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;
}