| line |
true |
false |
branch |
|
40
|
10 |
0 |
return x >= r[0] && x <= r[2] && y >= r[1] && y <= r[3]; |
|
|
10 |
0 |
return x >= r[0] && x <= r[2] && y >= r[1] && y <= r[3]; |
|
|
6 |
4 |
return x >= r[0] && x <= r[2] && y >= r[1] && y <= r[3]; |
|
|
4 |
2 |
return x >= r[0] && x <= r[2] && y >= r[1] && y <= r[3]; |
|
48
|
19 |
0 |
if (n == 0 || n > hay_len) return NULL; |
|
|
0 |
19 |
if (n == 0 || n > hay_len) return NULL; |
|
49
|
854 |
1 |
for (i = 0; i + n <= hay_len; i++) { |
|
50
|
18 |
836 |
if (memcmp(hay + i, needle, n) == 0) return hay + i; |
|
60
|
0 |
18 |
if (op < buf) return 0; |
|
61
|
17 |
1 |
if (op > buf && !isspace((unsigned char)op[-1])) return 0; |
|
|
0 |
17 |
if (op > buf && !isspace((unsigned char)op[-1])) return 0; |
|
63
|
0 |
18 |
if (after >= buf + buf_len) return 1; |
|
76
|
1 |
18 |
if (!hit) return NULL; |
|
77
|
18 |
0 |
if (is_standalone_op(buf, buf_len, hit, tag_len)) return hit; |
|
79
|
0 |
0 |
if (advanced >= remaining) return NULL; |
|
101
|
84 |
0 |
while (p < tm_op) { |
|
102
|
162 |
6 |
while (p < tm_op && isspace((unsigned char)*p)) p++; |
|
|
84 |
78 |
while (p < tm_op && isspace((unsigned char)*p)) p++; |
|
103
|
6 |
78 |
if (p >= tm_op) break; |
|
105
|
302 |
0 |
while (p < tm_op && !isspace((unsigned char)*p)) p++; |
|
|
224 |
78 |
while (p < tm_op && !isspace((unsigned char)*p)) p++; |
|
107
|
78 |
0 |
if (tok_len == 0 || tok_len >= 64) { count = 0; continue; } |
|
|
0 |
78 |
if (tok_len == 0 || tok_len >= 64) { count = 0; continue; } |
|
113
|
18 |
60 |
if (endp != tmp + tok_len) { |
|
117
|
60 |
0 |
if (count < 6) { |
|
120
|
0 |
0 |
for (i = 0; i < 5; i++) nums[i] = nums[i + 1]; |
|
124
|
0 |
6 |
if (count < 6) return 0; |
|
137
|
1 |
0 |
if (!in || !out) return PDFMAKE_EINVAL; |
|
|
0 |
1 |
if (!in || !out) return PDFMAKE_EINVAL; |
|
138
|
0 |
1 |
if (n_redactions == 0) { |
|
145
|
7 |
0 |
while (remaining > 0) { |
|
156
|
1 |
6 |
if (!bt) { |
|
163
|
0 |
6 |
if (err != PDFMAKE_OK) return err; |
|
167
|
0 |
6 |
if (!et) { |
|
177
|
6 |
0 |
if (tm) { |
|
179
|
6 |
0 |
if (parse_tm_origin(bt + 2, tm, &ex, &ey)) { |
|
181
|
10 |
2 |
for (i = 0; i < n_redactions; i++) { |
|
182
|
4 |
6 |
if (point_in_rect(ex, ey, redactions[i].rect)) { |
|
190
|
2 |
4 |
if (keep) { |
|
192
|
0 |
2 |
if (err != PDFMAKE_OK) return err; |