mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
misc: Ensure consistent overflow error messages
Update the overflow error messages to make them consistent across the GRUB code. Signed-off-by: Lidong Chen <lidong.chen@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
66733f7c7d
commit
f8795cde21
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -574,7 +574,7 @@ retry:
|
|||||||
goto retry;
|
goto retry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return grub_error (GRUB_ERR_BAD_FS, "run list overflown");
|
return grub_error (GRUB_ERR_BAD_FS, "run list overflow");
|
||||||
}
|
}
|
||||||
ctx->curr_vcn = ctx->next_vcn;
|
ctx->curr_vcn = ctx->next_vcn;
|
||||||
ctx->next_vcn += read_run_data (run, c1, 0); /* length of current VCN */
|
ctx->next_vcn += read_run_data (run, c1, 0); /* length of current VCN */
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ static grub_err_t
|
|||||||
decomp_nextvcn (struct grub_ntfs_comp *cc)
|
decomp_nextvcn (struct grub_ntfs_comp *cc)
|
||||||
{
|
{
|
||||||
if (cc->comp_head >= cc->comp_tail)
|
if (cc->comp_head >= cc->comp_tail)
|
||||||
return grub_error (GRUB_ERR_BAD_FS, "compression block overflown");
|
return grub_error (GRUB_ERR_BAD_FS, "compression block overflow");
|
||||||
if (grub_disk_read
|
if (grub_disk_read
|
||||||
(cc->disk,
|
(cc->disk,
|
||||||
(cc->comp_table[cc->comp_head].next_lcn -
|
(cc->comp_table[cc->comp_head].next_lcn -
|
||||||
|
|||||||
@@ -626,7 +626,7 @@ static grub_err_t
|
|||||||
grub_png_output_byte (struct grub_png_data *data, grub_uint8_t n)
|
grub_png_output_byte (struct grub_png_data *data, grub_uint8_t n)
|
||||||
{
|
{
|
||||||
if (--data->raw_bytes < 0)
|
if (--data->raw_bytes < 0)
|
||||||
return grub_error (GRUB_ERR_BAD_FILE_TYPE, "image size overflown");
|
return grub_error (GRUB_ERR_BAD_FILE_TYPE, "image size overflow");
|
||||||
|
|
||||||
if (data->cur_column == 0)
|
if (data->cur_column == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user