[PATCH] erofs-utils: lib: fix potential overflow issue

2024-08-13 Thread Hongzhen Luo
Coverity-id: 502353 Change 8U to 8ULL to avoid arithmetic multiplication overflow. Signed-off-by: Hongzhen Luo --- lib/kite_deflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kite_deflate.c b/lib/kite_deflate.c index 8581834..4b1068b 100644 --- a/lib/kite_deflate.

Re: [PATCH] erofs-utils: lib: fix potential overflow issue

2024-08-06 Thread Sandeep Dhavale via Linux-erofs
Thanks Hongzhen for explaining it. Reviewed-by: Sandeep Dhavale

Re: [PATCH] erofs-utils: lib: fix potential overflow issue

2024-08-05 Thread Hongzhen Luo
On 2024/8/6 02:39, Sandeep Dhavale wrote: On Sun, Aug 4, 2024 at 8:25 PM Hongzhen Luo wrote: Coverity-id: 502377 Signed-off-by: Hongzhen Luo --- lib/kite_deflate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kite_deflate.c b/lib/kite_deflate.c index a5ebd66..e

Re: [PATCH] erofs-utils: lib: fix potential overflow issue

2024-08-05 Thread Gao Xiang
Hi Sandeep, On 2024/8/6 02:39, Sandeep Dhavale via Linux-erofs wrote: On Sun, Aug 4, 2024 at 8:25 PM Hongzhen Luo wrote: Coverity-id: 502377 Signed-off-by: Hongzhen Luo --- lib/kite_deflate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kite_deflate.c b/lib/k

Re: [PATCH] erofs-utils: lib: fix potential overflow issue

2024-08-05 Thread Sandeep Dhavale via Linux-erofs
On Sun, Aug 4, 2024 at 8:25 PM Hongzhen Luo wrote: > > Coverity-id: 502377 > > Signed-off-by: Hongzhen Luo > --- > lib/kite_deflate.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lib/kite_deflate.c b/lib/kite_deflate.c > index a5ebd66..e52e382 100644 > --- a/lib/kit

[PATCH] erofs-utils: lib: fix potential overflow issue

2024-08-04 Thread Hongzhen Luo
Coverity-id: 502377 Signed-off-by: Hongzhen Luo --- lib/kite_deflate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kite_deflate.c b/lib/kite_deflate.c index a5ebd66..e52e382 100644 --- a/lib/kite_deflate.c +++ b/lib/kite_deflate.c @@ -817,7 +817,8 @@ static const st