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

version» Context lines:

pike.git/lib/modules/Standards.pmod/IIM.pmod:137:    werror("Malformed 8BIM block\n");    continue;    }       string block_type_2;    int block_length;    string info;       if (block[0]) {    // Photoshop 6.0 format with header description text of variable length. +  // The description text is padded with NUL so that it together with its +  // length field is even.    // The two bytes after the description text is zero padding, then comes    // the two bytes of data length. -  +  // +  // Cf https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_46269    int dsclen = block[0];    //werror("dsclen: %d\n", dsclen);    block_type_2 = block[1..dsclen]; -  +  dsclen |= 1; // Skip pascal string NUL-pad.    block_length = short_value(block[dsclen+3..dsclen+4]);    info = block[5+dsclen..4+dsclen+block_length];    }    else {    block_type_2 = block[..3];    //werror("block_type_2: %O\n", block_type_2);    block_length = short_value(block[4..5]);    info = block[6..5 + block_length];    }      #if 0 -  werror("block_length: %O\n" +  werror("block_type_2: %O\n" +  "block_length: %O\n"    "actual length: %O\n" -  "info: %O\n", block_length, sizeof(info), info); +  "info: %O\n", +  block_type_2, block_length, sizeof(info), info);   #endif /* 0 */       while (sizeof(info)) {    if (sizeof(info) < 6) {    //werror("Short info %O\n", info);    break;    }    int segment_marker = info[0];    int record_set = info[1];    int id = info[2];