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

Submitted by:  None
Submitted on:  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:  0.95+cvs20040624 Release:  None
Reproducibility:  None Planned Release:  None

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?


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


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.




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


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by robertmh (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen => Closed
    2005-11-05 jbbernar Carbon-Copy- => Added jbbernar
    2004-08-10 None Attached File- => Added 2g_limit.diff, #1574

    Back to the top

    Powered by Savane 3.3