bugGNU GRUB - Bugs: bug #24154, [patch] Wrong implementation of...

 
 

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

bug #24154: [patch] Wrong implementation of grub_video_vbe_scroll

Submitter:  Tomas Tintera <trosos>
Submitted:  Thu 28 Aug 2008 10:03:07 AM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  chaac Originator Name:  Tomas Tintera
Open/Closed:  Closed Release:  None
Release:  svn-2008-08-28 Reproducibility:  None
Planned Release:  None

Sun 01 Feb 2009 09:34:15 AM UTC, comment #2: 

Applied. Thaks.

Vesa Jääskeläinen <chaac>
Group Member
Wed 03 Sep 2008 07:08:42 PM UTC, comment #1: 

I am currently integrating some other patches to that code and after that I have a look your patch. If you do not hear me in a month, ping on this tracker ;)

Vesa Jääskeläinen <chaac>
Group Member
Thu 28 Aug 2008 10:03:07 AM UTC, original submission:  

Hi all,

while reading the source, I noticed that the
grub_video_vbe_scroll function seems not to work if used
with 0 < dy < (render_target->viewport.height / 2).
If we scroll down, we must begin at the bottom and continue
upwards, or else we would overwrite some memory before we
read it, which would give undesirable results (please
correct me if I am wrong).

(However, this situation so far never happens (because
grub_video_vbe_scroll() is only used to scroll up the text),
leaving this bug unreproducible).


The patch is attached.

In the patch, I changed the type of the variable j, thinking
that it is a mistype, as I noticed you use the type unit32_t
in that context anywhere else.


Best regards,
Tomas "trosos" Tintera

Tomas Tintera <trosos>

 

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

Attached Files
file #16376:  vbe.diff added by trosos (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chaac (Posted a comment)
  • -email is unavailable- added by trosos (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-02-01 chaac StatusNone Fixed
        Open/ClosedOpen Closed
    2008-09-03 chaac Assigned toNone chaac
    2008-08-28 trosos Attached File- Added vbe.diff, #16376

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code