The entry_size field in result entries created by ccache 4.5 are off by
one. Fix this by properly accounting for the new format_ver field in
result payload data.
Note: This bug only affects the recompression feature (-X/--recompress)
and not other ccache usage.
Closes #965.
{
FileSizeAndCountDiff file_size_and_count_diff{0, 0};
uint64_t payload_size = 0;
+ payload_size += 1; // format_ver
payload_size += 1; // n_entries
for (const auto& pair : m_entries_to_write) {
const auto& path = pair.second;