swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] Access Violation in swf_GetU8


From: Romi Kuntsman
Subject: [Swftools-common] Access Violation in swf_GetU8
Date: Sun, 2 Sep 2012 12:47:04 +0300

Hi,
This code CRASHES the program:
*(int*)0=0;

U8 swf_GetU8(TAG * t)
{ swf_ResetReadBits(t);
  #ifdef DEBUG_RFXSWF
    if ((int)t->pos>=(int)t->len) 
    { fprintf(stderr,"GetU8() out of bounds: TagID = %i\n",t->id);
      *(int*)0=0;
      return 0;
    }
  #endif
  return t->data[t->pos++];
}

It does not appear in swf_GetU16 or swf_GetU32.
What I want is that swfdump will gracefully fail processing the DoAction tag when it gets such an error, not crash my windows :-)

Can you please fix it?
Thanks!
RK.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]