Searched refs:itemlen (Results 1 – 1 of 1) sorted by relevance
534 int itemlen; in ReadSectionsFromBuffer() local557 itemlen = (lh << 8) | ll; in ReadSectionsFromBuffer()559 if (itemlen < 2) { in ReadSectionsFromBuffer()564 mSections[mSectionsRead].Size = itemlen; in ReadSectionsFromBuffer()566 Data = (unsigned char *)malloc(itemlen); in ReadSectionsFromBuffer()577 if (pos+itemlen-2 > buffer_size) { in ReadSectionsFromBuffer()582 memcpy(Data+2, buffer+pos, itemlen-2); // Read the whole section. in ReadSectionsFromBuffer()583 pos += itemlen-2; in ReadSectionsFromBuffer()