pike.git / lib / modules / Standards.pmod / IIM.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/IIM.pmod:279:    }    } else if (marker == "\xff\xd8") {    do {    string app = fd->read(2);    if (sizeof(app) != 2)    break;    string length_s = fd->read(2);    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);    photoshop_data = data;    break;    }    } while (1);    } else {    //werror("unknown marker: %O neither JPEG nor Postscript\n", marker);    return ([]);