1 // Contributed by Alexandre Oliva <aoliva@redhat.com>
2 // From Red Hat case 106165.
10 extern void bar(const struct s1
*const hdb
);
11 extern unsigned char* foo ();
18 unsigned int crashIt()
24 if (sn
!= 0) return 1;
26 if ((len
< 12) || ((p
= (((pb
->v1
) >= 8) ? pb
->v2
: foo() )) == 0))
30 (((*(unsigned int*)p
) & 0x000000ff) << 24) |
31 (((*(unsigned int*)p
) & 0x0000ff00) << 8) |
32 (((*(unsigned int*)p
) & 0x00ff0000) >> 8) |
33 (((*(unsigned int*)p
) & 0xff000000) >> 24) );
36 cnt
= (unsigned short) ((
37 (((*(unsigned int*)p
) & 0x000000ff) << 24) |
38 (((*(unsigned int*)p
) & 0x0000ff00) << 8) |
39 (((*(unsigned int*)p
) & 0x00ff0000) >> 8) |
40 (((*(unsigned int*)p
) & 0xff000000) >> 24) ) &
43 if ((len
!= 12 + (cnt
* 56)) || (nsn
== 0))