Skip to content

Conversation

@yzqzss
Copy link
Collaborator

@yzqzss yzqzss commented Nov 1, 2025

Issue: the lifecycle of warcVer spans multiple readUntilDelim() calls, and changes in the underlying buffer (intermediateBuf) data cause unexpected changes to the warcVer.

The lifecycle of warcVer spans multiple `readUntilDelim()` calls, and changes in the underlying buffer (intermediateBuf) data can cause unexpected to the warcVer.
@yzqzss yzqzss requested review from NGTmeaty and equals215 November 1, 2025 12:30
@yzqzss yzqzss added the bug Something isn't working label Nov 1, 2025
@NGTmeaty
Copy link
Collaborator

NGTmeaty commented Nov 2, 2025

Is this covered in #150? Also are there WARC integrity concerns here?

@yzqzss
Copy link
Collaborator Author

yzqzss commented Nov 3, 2025

Is this covered in #150? Also are there WARC integrity concerns here?

Ah, indeed covered, I didn't notice that.

This only causes the warcVer to become random data, and then our warc verify command will fail to verify the WARC Version. The integrity of the warc file generated by gowarc is still good.

@yzqzss yzqzss closed this Nov 3, 2025
@yzqzss yzqzss reopened this Nov 3, 2025
@yzqzss
Copy link
Collaborator Author

yzqzss commented Nov 3, 2025

Wait, this is a bug fix PR, while #150 is a feature PR. How about merging this small PR first? :)

@equals215
Copy link
Member

Good news that the WARC integrity is unaltered by this bug. I'm in favor of merging the bugfix first, and fast

@NGTmeaty
Copy link
Collaborator

NGTmeaty commented Nov 3, 2025

That works with me. Thanks for the answers and as always appreciate it!

@NGTmeaty NGTmeaty merged commit 52f00a3 into master Nov 3, 2025
5 checks passed
@NGTmeaty NGTmeaty deleted the fix-warc-version-string-ref-slice branch November 3, 2025 10:22
@NGTmeaty
Copy link
Collaborator

NGTmeaty commented Nov 3, 2025

And I pushed a new release 😄

Copilot AI pushed a commit that referenced this pull request Nov 15, 2025
The lifecycle of warcVer spans multiple `readUntilDelim()` calls, and changes in the underlying buffer (intermediateBuf) data can cause unexpected to the warcVer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants