Skip to content

Tar reader checksum checking #117455

@tmds

Description

@tmds

I noticed this while working on #117410:

int checksum = (int)TarHelpers.ParseOctal<uint>(spanChecksum);
// Zero checksum means the whole header is empty
if (checksum == 0)
{
return null;
}

There's no reason to treat zero separate from any other checksum value.
I think this code should be removed.

@ericstj @dotnet/area-system-formats-tar wdyt?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions