バッファをスタックから取らないように修正(ホワイトリスト関連)

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1233 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
yutaka 2008-04-23 04:20:11 +00:00
parent a9e43738ef
commit 8361985b92

View File

@ -174,7 +174,7 @@ static BOOL ReadImage(void* dest, s32 offset, s32 length, void* arg)
HotSwState retval;
if ( offset % 512 )
{
u8 page_buffer[512];
static u8 page_buffer[512];
u32 page_offset = (u32)(offset & -512);
u32 buffer_offset = (u32)(offset % 512);
u32 valid_length = 512 - buffer_offset;