Searched refs:safe_buffer (Results 1 – 1 of 1) sorted by relevance
949 SafeBuffer safe_buffer(kMagicVersionSize); in ReadProfileHeader() local951 ProfileLoadStatus status = safe_buffer.Fill(source, "ReadProfileHeader", error); in ReadProfileHeader()956 if (!safe_buffer.CompareAndAdvance(kProfileMagic, sizeof(kProfileMagic))) { in ReadProfileHeader()960 if (!safe_buffer.CompareAndAdvance(kProfileVersion, sizeof(kProfileVersion))) { in ReadProfileHeader()964 if (!safe_buffer.ReadUintAndAdvance<uint8_t>(number_of_dex_files)) { in ReadProfileHeader()968 if (!safe_buffer.ReadUintAndAdvance<uint32_t>(uncompressed_data_size)) { in ReadProfileHeader()972 if (!safe_buffer.ReadUintAndAdvance<uint32_t>(compressed_data_size)) { in ReadProfileHeader()