Skip to content

Commit

Permalink
fixed buffer overrun through the caching system when invalidating data
Browse files Browse the repository at this point in the history
  • Loading branch information
dimok789 committed Apr 25, 2016
1 parent 74ab489 commit 050d5f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/discdumper.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void DumpMetaPath(void *pClient, void *pCmd, SendData *sendData)

if(!sendData)
{
sendData = (SendData*) malloc(sizeof(SendData) + BUFFER_SIZE);
sendData = (SendData*) memalign(0x20, ALIGN32(sizeof(SendData) + BUFFER_SIZE));
if(!sendData)
break;

Expand Down Expand Up @@ -324,7 +324,7 @@ void DumpRpxRpl(SendData *sendData)

if(!sendData)
{
sendData = (SendData*) malloc(sizeof(SendData) + BUFFER_SIZE);
sendData = (SendData*)memalign(0x20, ALIGN32(sizeof(SendData) + BUFFER_SIZE));
if(!sendData)
return;

Expand Down Expand Up @@ -522,7 +522,7 @@ void StartDumper()

do
{
sendData = (SendData*) malloc(sizeof(SendData) + BUFFER_SIZE);
sendData = (SendData*)memalign(0x20, ALIGN32(sizeof(SendData) + BUFFER_SIZE));
if(!sendData)
break;

Expand Down

0 comments on commit 050d5f6

Please sign in to comment.