It seems possible but no reproducible way made into public.
Reported-by: Tristan <[email protected]>
Closes:
https://lore.kernel.org/r/CAA1XrhPMekMqAnRkC-jV9rTsO4LHjzh=kxn6zqkmgbrqfrn...@mail.gmail.com/2-u64-to-u32-truncation-overflow.txt
Signed-off-by: Gao Xiang <[email protected]>
---
fsck/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fsck/main.c b/fsck/main.c
index 87eeb81136ff..fc64e6e263d8 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -513,7 +513,7 @@ static int erofs_verify_inode_data(struct erofs_inode
*inode, int outfd)
bool compressed;
erofs_off_t pos = 0;
u64 pchunk_len = 0;
- unsigned int raw_size = 0, buffer_size = 0;
+ u64 raw_size = 0, buffer_size = 0;
char *raw = NULL, *buffer = NULL;
erofs_dbg("verify data chunk of nid(%llu): type(%d)",
--
2.43.5