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:
parent
dc1991b5d5
commit
89780a095e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user