Commit 15ea288
crypto: zstd - Fix compression bug caused by truncation
commit 81c1a15eb4a273eabedfcc28eb6afa4b50cb8a46 upstream.
Use size_t for the return value of zstd_compress_cctx as otherwise
negative errors will be truncated to a positive value.
Reported-by: Han Xu <[email protected]>
Fixes: f5ad93f ("crypto: zstd - convert to acomp")
Signed-off-by: Herbert Xu <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Tested-by: Han Xu <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 75fcc07 commit 15ea288
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments