Skip to content

Upgrade CPR to v1.14.2#15

Merged
jviotti merged 2 commits intomainfrom
cpr-1-14-2
Feb 16, 2026
Merged

Upgrade CPR to v1.14.2#15
jviotti merged 2 commits intomainfrom
cpr-1-14-2

Conversation

@jviotti
Copy link
Member

@jviotti jviotti commented Feb 16, 2026

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

@augmentcode
Copy link

augmentcode bot commented Feb 16, 2026

🤖 Augment PR Summary

Summary: Updates the vendored CPR (C++ Requests) dependency to v1.14.2.

Changes:

  • Bumps CPR in DEPENDENCIES from 1.14.1 to 1.14.2
  • Syncs vendored CPR sources under vendor/cpr to match the new release
  • Makes cpr::CurlHolder non-copyable and adds explicit move ctor/assignment to avoid resource double-frees
  • Refactors CURL error-code translation from a static unordered_map to a switch-based implementation

Technical Notes: This is primarily a vendor upgrade; most behavioral changes are internal safety/maintainability adjustments in CPR’s curl resource management and error mapping.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

} // namespace cpr
}

CurlHolder::CurlHolder(CurlHolder&& old) noexcept : handle(old.handle), chunk(old.chunk), resolveCurlList(old.resolveCurlList), multipart(old.multipart), error(std::move(old.error)) {
Copy link

Choose a reason for hiding this comment

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

CurlHolder is now movable, but if the CURL* has CURLOPT_ERRORBUFFER set to old.error.data(), moving will leave the handle pointing at the moved-from buffer, which can dangle once old is destroyed. Consider ensuring the moved-to handle’s error-buffer pointer remains valid (or documenting that CurlHolder must not be moved after configuring the handle).

Severity: medium

Other Locations
  • vendor/cpr/cpr/curlholder.cpp:40

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

}
}

} // namespace cpr No newline at end of file
Copy link

Choose a reason for hiding this comment

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

This file appears to be missing a trailing newline (diff shows No newline at end of file), which can cause noisy diffs and occasionally trip tooling.

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti jviotti merged commit 6e0ad11 into main Feb 16, 2026
23 of 24 checks passed
@jviotti jviotti deleted the cpr-1-14-2 branch February 16, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant