[PATCH 2/2] erofs-utils: libzstd: fix undefined behavior shift in setdictsize

Gao Xiang hsiangkao at linux.alibaba.com
Mon Apr 20 12:57:29 AEST 2026



On 2026/4/20 10:50, Nithurshen wrote:
> Hi Xiang,
> 
> I do agree that `pclustersize_max` is always greater than 0 and
> `ondisk_extradevs` is at max 65535.
> 
> My intent was to look at these functions as independent blocks.
> Even though the current upstream callers provide safe inputs, I
> wanted to make them robust against any undefined behavior in case
> they are reused in the future.

They won't be reused in any case like this.

> 
> Thanks,
> Nithurshen
> 
> Regards,
> Nithurshen



More information about the Linux-erofs mailing list