3 !!DESCRIPTION!! struct base address dereferencing bug
5 !!LICENCE!! Public Domain
21 struct yywork *yystoff;
24 unsigned char fails = 0;
26 int main(int n, char **args)
28 struct yysvf *yystate = yysvec;
31 yystate->yystoff = yycrank;
32 yyt = yystate->yystoff;
35 printf("yyt == yycrank (ok)\n");
37 printf("yyt != yycrank (fail)\n");
41 if(yyt == yystate->yystoff) {
42 printf("yyt == yystate->yystoff (ok)\n");
44 printf("yyt != yystate->yystoff (fail)\n");
48 if(yycrank == yystate->yystoff) {
49 printf("yycrank == yystate->yystoff (ok)\n");
51 printf("yycrank != yystate->yystoff (fail)\n");
55 printf("fails: %d\n", fails);