Branch: Tag:

2012-07-06

2012-07-06 12:37:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Standards.IIM: Fixed integer underflow.

This bug could in some circumstances cause an infinite loop in get_information().

307:    int length;    if (sizeof(length_s) == 2)    length = short_value(length_s); +  else +  break;    //werror ("length: %O\n", short_value(length_s));    -  string data = fd->read(length-2); +  string data = fd->read((length-2) & 0xffff);    if (app == "\xff\xed") // APP14 Photoshop    {    //werror("data: %O\n", data);