Conversation
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
🤖 Augment PR SummarySummary: Updates the vendored CPR (C++ Requests) dependency to v1.14.2. Changes:
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 👎 |
| } // namespace cpr | ||
| } | ||
|
|
||
| CurlHolder::CurlHolder(CurlHolder&& old) noexcept : handle(old.handle), chunk(old.chunk), resolveCurlList(old.resolveCurlList), multipart(old.multipart), error(std::move(old.error)) { |
There was a problem hiding this comment.
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
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
| } | ||
| } | ||
|
|
||
| } // namespace cpr No newline at end of file |
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
Signed-off-by: Juan Cruz Viotti jv@jviotti.com