Invalid TAR end
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- tooling
Research direction
Start with the provided Main entry point and reproduce the failure using format.tar.Writer and Reader, varying the first file size as shown. Inspect the TAR reader and writer behavior around the generated end marker; done when the example reads both entries successfully for the reported sizes.
Written by the indexing model from the issue text.
Description
import format.tar.*;
import haxe.io.*;
using Lambda;
class Main {
static function main() {
function file(name:String, bytes:Bytes) return {
fileName: name,
fileSize: bytes.length,
fileTime: Date.now(),
fmod: 666,
uid: 1,
gid: 1,
uname: 'u',
gname: 'g',
data: bytes,
}
var data = [
file('folder/file1.txt', Bytes.alloc(4096)), // fails if: 1024, 2048, 4096, 512000, etc...
file('folder/file2.txt', Bytes.alloc(1)),
].list();
var output = new BytesOutput();
new Writer(output).write(data);
var entries = new Reader(new BytesInput(output.getBytes())).read();
for(file in entries) trace(file.fileName, file.fileSize);
}
}
Trying to tar some files, if the first file size is of some magic numbers, it fails to untar with Invalid TAR end
- Dominant language
- Haxe
- Stars
- 141
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HaxeFoundation/format
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
HaxeFoundation/format#111 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
HaxeFoundation/format#107 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
HaxeFoundation/format#102 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
HaxeFoundation/format#100 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
HaxeFoundation/format#99 · 1 comment ·
All issues in HaxeFoundation/format
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ubugeeei-prod/vize#13586 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
UKGovernmentBEIS/inspect_ai#6733 ·
Maintainers usually reply within 1 day
-
area:tooling priority:p3 scope:infrastructure size:s status:ready type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
bug schema
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day