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.
---------------
SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an 
existing subscription, please kindly point your favourite web browser 
at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>

Reply via email to