Skip to content
Permalink
Browse files

. 修正错误。

  • Loading branch information...
yaya
yaya committed Jun 17, 2019
1 parent e290938 commit 7c4ba84e5fa151473aabae4b129cd82f2176b9e5
Showing with 2 additions and 7 deletions.
  1. +2 −7 stage2/disk_io.c
@@ -500,13 +500,8 @@ devread (unsigned long long sector, unsigned long long byte_offset, unsigned lon
}

/* Check partition boundaries */
if (((unsigned long long)(sector + ((byte_offset + byte_len - 1) >> sector_size_bits)) >= (unsigned long long)part_length))
{
if (part_start)
return !(errnum = ERR_OUTSIDE_PART);
else
return !(errnum = ERR_READ);
}
if (((unsigned long long)(sector + ((byte_offset + byte_len - 1) >> sector_size_bits)) >= (unsigned long long)part_length) && part_start)
return !(errnum = ERR_OUTSIDE_PART);

/* Get the read to the beginning of a partition. */
sector += byte_offset >> sector_size_bits;

2 comments on commit 7c4ba84

@steve6375

This comment has been minimized.

Copy link

replied Jun 20, 2019

What error does this fix? Is it a serious problem? What is symptom of error?

@yaya2007

This comment has been minimized.

Copy link
Collaborator

replied Jul 13, 2019

Cancel "Forbid Transboundary Reading of Disks"

Please sign in to comment.
You can’t perform that action at this time.