mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
バッファをスタックから取らないように修正(ホワイトリスト関連)
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@1233 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
a9e43738ef
commit
8361985b92
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user