1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.Malloc -verify %s
2 // expected-no-diagnostics
15 const unsigned char *ib
;
19 unsigned long gl(IB
*input
);
20 inline void gbs(IB
*input
, unsigned char *buf
, int count
);
21 void getB(IB
*st
, Hdr2
*usedtobeundef
);
22 inline unsigned char gb(IB
*input
) {
23 if (input
->cur
+ 1 > input
->end
)
25 return input
->ib
[(input
->cur
)++];
27 static void getID(IB
*st
, char str
[4]) {
33 static void getH(IB
*st
, Hdr
*header
) {
34 getID (st
, header
->I
);
37 static void readILBM(IB
*st
, Info
*pic
) {
39 pic
->usedtobeundef
.w
= 5;
41 // Time out in the function so that we will be forced to retry with no inlining.
46 while (st
->cur
< st
->end
&& i
< 4) {
51 int bitmapImageRepFromIFF(IB st
, const unsigned char *ib
, int il
) {
57 return pic
.usedtobeundef
.w
; // No undefined value warning here.