Title: Dangling reference to filterFunc in DatabaseSync::ApplyChangeset in node_sqlite.cc · Issue #62276 · nodejs/node · GitHub
Open Graph Title: Dangling reference to filterFunc in DatabaseSync::ApplyChangeset in node_sqlite.cc · Issue #62276 · nodejs/node
X Title: Dangling reference to filterFunc in DatabaseSync::ApplyChangeset in node_sqlite.cc · Issue #62276 · nodejs/node
Description: DatabaseSync::ApplyChangeset() in node_sqlite.cc initializes context.filterCallback by a lambda that captures filterFunc by reference. filterFunc is defined in a block that ends before the callback is invoked (via sqlite3changeset_apply(...
Open Graph Description: DatabaseSync::ApplyChangeset() in node_sqlite.cc initializes context.filterCallback by a lambda that captures filterFunc by reference. filterFunc is defined in a block that ends before the callback...
X Description: DatabaseSync::ApplyChangeset() in node_sqlite.cc initializes context.filterCallback by a lambda that captures filterFunc by reference. filterFunc is defined in a block that ends before the callback...
Opengraph URL: https://github.com/nodejs/node/issues/62276
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dangling reference to filterFunc in DatabaseSync::ApplyChangeset in node_sqlite.cc","articleBody":"`DatabaseSync::ApplyChangeset()` in `node_sqlite.cc` initializes `context.filterCallback` by a lambda that captures `filterFunc` by reference. `filterFunc` is defined in a block that ends before the callback is invoked (via `sqlite3changeset_apply()`). So, `filterFunc` is a dangling reference by that time. The lamda should capture `filterFunc` by value (compare with the correct capture of `context.conflictCallback` lambda few lines above).","author":{"url":"https://github.com/iamstolis","@type":"Person","name":"iamstolis"},"datePublished":"2026-03-16T12:57:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/62276/node/issues/62276"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9b6f61dc-0a23-507d-5683-c8695857383e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF9C:2495A6:B98466:10BD3A2:6A4CC182 |
| html-safe-nonce | 9197435bee26d84ddd1a6b3ce1ac03b4191f2f65c10ce985e67383f9bb07c862 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjlDOjI0OTVBNjpCOTg0NjY6MTBCRDNBMjo2QTRDQzE4MiIsInZpc2l0b3JfaWQiOiIzMzk5MzMyMzczMDY5NjExMzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1449dee294a9c19a9cf4a5a7bd90da6262431e1b9073f28c007a2d6f5440806d |
| hovercard-subject-tag | issue:4082332978 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/62276/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f4c6576131ee47e9cae31f046d2226b9f3996a2ac3a4e9e29546fad2e34da46/nodejs/node/issues/62276 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f4c6576131ee47e9cae31f046d2226b9f3996a2ac3a4e9e29546fad2e34da46/nodejs/node/issues/62276 |
| og:image:alt | DatabaseSync::ApplyChangeset() in node_sqlite.cc initializes context.filterCallback by a lambda that captures filterFunc by reference. filterFunc is defined in a block that ends before the callback... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iamstolis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c03e7e569190bc89b638cdd4acb4b6c6b38a170a |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width