Skip to content

urldata: make speeder_c uint32#21036

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/speeder
Closed

urldata: make speeder_c uint32#21036
bagder wants to merge 1 commit intomasterfrom
bagder/speeder

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Mar 20, 2026

This counter is meant to virtually never wrap.

Follow-up to e369161

Spotted by Codex Security

This counter is meant to virtually never wrap.

Follow-up to e369161

Spotted by Codex Security
@bagder bagder marked this pull request as ready for review March 20, 2026 14:58
@bagder bagder requested a review from Copilot March 20, 2026 14:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates libcurl’s internal progress tracking state to use a wider counter type for speeder_c, preventing unintended wraparound during long-running transfers and keeping the speed history logic stable over time.

Changes:

  • Change struct Progress::speeder_c from uint8_t to uint32_t to avoid counter wrap.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder bagder changed the title urldate: make speeder_c uint32 urldata: make speeder_c uint32 Mar 20, 2026
@bagder bagder closed this in b9e179e Mar 20, 2026
@bagder bagder deleted the bagder/speeder branch March 20, 2026 15:57
dkarpov1970 pushed a commit to dkarpov1970/curl that referenced this pull request Mar 25, 2026
This counter is meant to virtually never wrap.

Follow-up to e369161

Spotted by Codex Security

Closes curl#21036
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants