... | ... |
@@ -450,7 +450,7 @@ static int find_length(struct pdf_struct *pdf, struct pdf_obj *obj, const char * |
450 | 450 |
if (!start) |
451 | 451 |
return 0; |
452 | 452 |
|
453 |
- /* len -= start - q; */ |
|
453 |
+ len -= start - q; |
|
454 | 454 |
q = start; |
455 | 455 |
if (CL_SUCCESS != cli_strntol_wrap(q, (size_t)len, 0, 10, (long*)&length)) { |
456 | 456 |
cli_dbgmsg("cli_pdf: failed to parse object length\n"); |