line |
true |
false |
branch |
21
|
0 |
4 |
if (data == NULL) { |
26
|
4 |
4 |
while ((rd_size = i_io_read(io, data + offset, size - offset)) > 0) { |
28
|
0 |
4 |
if (size - offset < BUF_BASE_SIZE / 2) { |
31
|
0 |
0 |
if (new_size < size) { |
37
|
0 |
0 |
if (new_data == NULL) { |
62
|
0 |
4 |
if (page != 0) { |
68
|
0 |
4 |
if (!data) |
72
|
0 |
4 |
if (image_data == NULL) { |
82
|
0 |
4 |
if (!i_int_check_image_file_limits(desc.width, desc.height, |
89
|
0 |
4 |
if (!img) |
93
|
600 |
4 |
for (y = 0; y < desc.height; ++y) { |
114
|
0 |
0 |
if (img) { |
143
|
5 |
0 |
if (im->xsize > INT_MAX || im->ysize > INT_MAX) { |
|
0 |
5 |
if (im->xsize > INT_MAX || im->ysize > INT_MAX) { |
149
|
2 |
3 |
if (colorspace != QOI_SRGB && colorspace != QOI_LINEAR) { |
|
1 |
1 |
if (colorspace != QOI_SRGB && colorspace != QOI_LINEAR) { |
155
|
0 |
4 |
channels = (i_img_has_alpha(im) ? 1 : 0) + 3; |
160
|
0 |
4 |
if (data_size / (size_t)im->xsize / (size_t)im->ysize != (size_t)channels) { |
164
|
4 |
0 |
if (data_size > INT_MAX || |
|
0 |
4 |
if (data_size > INT_MAX || |
172
|
0 |
4 |
if (data == NULL) { |
177
|
1 |
3 |
chans = i_img_color_channels(im) < 3 ? gray_chans : NULL; |
180
|
600 |
4 |
for (y = 0; y < im->ysize; ++y) { |
190
|
0 |
4 |
if (image_data == NULL) { |
199
|
0 |
4 |
if (i_io_write(ig, image_data, out_len) != out_len) { |
204
|
0 |
4 |
if (i_io_close(ig)) { |
218
|
0 |
0 |
if (count != 1) { |