j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: 2009-06-13 09:36:56 +0200 (Sat, 13 Jun 2009) New Revision: 503
Modified: trunk/openbios-devel/modules/video.c Log: sparc64 video.pal fix memory corruption (Igor Kovalenko)
Modified: trunk/openbios-devel/modules/video.c =================================================================== --- trunk/openbios-devel/modules/video.c 2009-06-06 14:57:25 UTC (rev 502) +++ trunk/openbios-devel/modules/video.c 2009-06-13 07:36:56 UTC (rev 503) @@ -322,7 +322,7 @@ set_property( ph, "address", (char*)&video.fb.mphys, 4 ); } video.has_video = 1; - video.pal = malloc( 256 * sizeof(int) ); + video.pal = malloc( 256 * sizeof(ulong) );
s = (video.fb.mphys & 0xfff); size = ((video.fb.h * video.fb.rb + s) + 0xfff) & ~0xfff;