Repository navigation
fix: Keep the elements of sqliteHttpStats() protected while its list is built - #894
Merged
Merged
Conversation
…t is built rchk reported that `sqlite_http_stats()` passed freshly allocated scalars to `push_back()`, which allocates and could collect them. Build the list from named arguments instead, which hold each element in a protected `cpp11::sexp`. The result is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
krlmlr
pushed a commit
that referenced
this pull request
Nov 14, 2026
Cite only the final SQLite upgrade, and say that the UTF-8 check is opt-in. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
2 tasks
Member
Author
Accepted limitationsThe clean review found nothing above Low. It confirmed against cpp11's headers that every element is held in a protected
Generated by Claude Code |
16 of 22 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rchk, in the R-hub run of the release PR #893, reported that
sqlite_http_stats()(src/httpvfs_stats.cpp) passes freshly allocated scalars tocpp11::writable::list::push_back(), which allocates itself and could collect them. This builds the list from cpp11 named arguments instead, each of which holds its element in a protectedcpp11::sexp. The result is unchanged: a list ofbytes_fetched(integer),range_requests(integer) andfull_download(logical).Checked locally: the package builds, the result is identical with and without
gctorture(), andtest-httpvfs.Randtest-httpvfs-helpers.Rpass. The rchk job of R-hub runs on the release branch, which carries this fix.Part of the release of 3.54.1 (#893): the release branch merges this branch, so that the reverse-dependency run checks the code that ships.
https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
Generated by Claude Code