… | |
… | |
282 | LOG (llevError, "read_client_images: Image num %d not in 0..%d\n%s", num, nrofpixmaps, buf); |
282 | LOG (llevError, "read_client_images: Image num %d not in 0..%d\n%s", num, nrofpixmaps, buf); |
283 | abort (); |
283 | abort (); |
284 | } |
284 | } |
285 | |
285 | |
286 | /* Skip accross the number data */ |
286 | /* Skip accross the number data */ |
287 | for (cp = buf + 6; *cp != ' '; cp++); |
287 | for (cp = buf + 6; *cp != ' '; cp++) |
|
|
288 | ; |
|
|
289 | |
288 | len = atoi (cp); |
290 | len = atoi (cp); |
289 | if (len == 0 || len > MAX_IMAGE_SIZE) |
291 | if (len == 0 || len > MAX_IMAGE_SIZE) |
290 | { |
292 | { |
291 | LOG (llevError, "read_client_images: length not valid: %d > %d \n%s", len, MAX_IMAGE_SIZE, buf); |
293 | LOG (llevError, "read_client_images: length not valid: %d > %d \n%s", len, MAX_IMAGE_SIZE, buf); |
292 | abort (); |
294 | abort (); |