Fix integer overflow problem with libfsimage grub plugins.

Signed-off-by: John Levon <john.levon@sun.com>
This commit is contained in:
kaf24@localhost.localdomain committed 2006-11-11 01:17:57 +00:00
1 parent b991dfcee5
commit 106e6b9de4
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ int
fsig_devread(fsi_file_t *ffi, unsigned int sector, unsigned int offset,
unsigned int bufsize, char *buf)
{
uint64_t off = ffi->ff_fsi->f_off + ((uint64_t)(sector * 512)) + offset;
uint64_t off = ffi->ff_fsi->f_off + ((uint64_t)sector * 512) + offset;
ssize_t bytes_read = 0;
while (bufsize) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.