bugGNU GRUB - Bugs: bug #9954, The memcheck function in char_io.c...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9954: The memcheck function in char_io.c must use unsigned

Submitter:  None
Submitted:  Tue 10 Aug 2004 10:56:03 AM UTC
Votes: 100
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Goswin von Brederlow
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Release:  0.95+cvs20040624
Reproducibility:  None Planned Release:  None

(-)Discussion

Sat 15 Dec 2007 01:33:03 PM UTC, comment #1: 

We've moved to GRUB 2 as a development platform. Please can you check if this bug still applies there, and if it does, reopen it?

Thanks

Robert Millan <robertmh>
Group administrator
Tue 10 Aug 2004 10:56:03 AM UTC, original submission:  

Hi,

in char_io.c the memcheck function uses "int addr" to store addresses and does bounds checking on it. On systems with over 2G of ram the "int addr" will be negative and the bounds checking will fail producing an "ERR_WONT_FIT".

The attached patch changes the addr and len argument to unsigned long long as well as the two helper functions.

MfG
Goswin

Anonymous

 

(-)Attached Files

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1641:  2g_limit.diff added by None (1KiB - application/octet-stream - Patch to fix boot failures with >2GB ram)

 

(-)Dependencies

Depends on the following items: None found

Items that depend on this one: None found

 

(+)Mail Notification Carbon-Copy List

(+)Votes

(+)History

Back to the top

Powered by Savane 3.14-ee00.
Corresponding source code