mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 18:27:56 +08:00
drivers/bch: fix uint32 overflow issue
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -245,7 +245,7 @@ static off_t bch_seek(FAR struct file *filep, off_t offset, int whence)
|
||||
break;
|
||||
|
||||
case SEEK_END:
|
||||
newpos = bch->sectsize * bch->nsectors + offset;
|
||||
newpos = (off_t)bch->sectsize * bch->nsectors + offset;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user