… | |
… | |
283 | if (len == 0 || len > MAX_IMAGE_SIZE) |
283 | if (len == 0 || len > MAX_IMAGE_SIZE) |
284 | { |
284 | { |
285 | LOG (llevError, "read_client_images: length not valid: %d > %d \n%s", len, MAX_IMAGE_SIZE, buf); |
285 | LOG (llevError, "read_client_images: length not valid: %d > %d \n%s", len, MAX_IMAGE_SIZE, buf); |
286 | abort (); |
286 | abort (); |
287 | } |
287 | } |
288 | /* We don't actualy care about the name if the image that |
288 | /* We don't actualy care about the name of the image that |
289 | * is embedded in the image file, so just ignore it. |
289 | * is embedded in the image file, so just ignore it. |
290 | */ |
290 | */ |
291 | facesets[fileno].faces[num].datalen = len; |
291 | facesets[fileno].faces[num].datalen = len; |
292 | facesets[fileno].faces[num].data = (uint8 *) malloc (len); |
292 | facesets[fileno].faces[num].data = (uint8 *) malloc (len); |
293 | if ((i = fread (facesets[fileno].faces[num].data, len, 1, infile)) != 1) |
293 | if ((i = fread (facesets[fileno].faces[num].data, len, 1, infile)) != 1) |