On 17/07/2025 16:34, Sergey Bashirov wrote:
Current implementation of the function assumes that the provided buffer can always accommodate at least one encoded extent. This patch adds handling of all theoretically possible values of be_prev, so that ext_tree_encode_commit makes no assumptions about the provided buffer size, and static checks pass without warnings. Fixes: d84c4754f874 ("pNFS: Fix extent encoding in block/scsi layout") Addresses-Coverity-ID: 1647611 ("Memory - illegal accesses (UNINIT)") Signed-off-by: Sergey Bashirov <sergeybashirov@xxxxxxxxx>
Acked-by: Antonio Quartulli <antonio@xxxxxxxxxxxxx> Thanks a lot! Regards, -- Antonio Quartulli CEO and Co-Founder Mandelbit Srl https://www.mandelbit.com