René's URL Explorer Experiment


Title: napi_get_value_uint32 difference between Node 14 and previous · Issue #33117 · nodejs/node · GitHub

Open Graph Title: napi_get_value_uint32 difference between Node 14 and previous · Issue #33117 · nodejs/node

X Title: napi_get_value_uint32 difference between Node 14 and previous · Issue #33117 · nodejs/node

Description: Hi, In sodium-native we have a special malloc that allows you to allocated a mmap'ed buffer with special flags that provide extra protection. The signature is sodium_malloc(bytes) where bytes can be up to 0xffffffff. Until Node 14 napi_g...

Open Graph Description: Hi, In sodium-native we have a special malloc that allows you to allocated a mmap'ed buffer with special flags that provide extra protection. The signature is sodium_malloc(bytes) where bytes can b...

X Description: Hi, In sodium-native we have a special malloc that allows you to allocated a mmap'ed buffer with special flags that provide extra protection. The signature is sodium_malloc(bytes) where bytes c...

Opengraph URL: https://github.com/nodejs/node/issues/33117

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"napi_get_value_uint32 difference between Node 14 and previous","articleBody":"Hi,\r\n\r\nIn sodium-native we have a special malloc that allows you to allocated a mmap'ed buffer with special flags that provide extra protection. The signature is `sodium_malloc(bytes)` where `bytes` can be up to `0xffffffff`. Until Node 14 `napi_get_value_uint32` would fail for numbers outside this range (eg. `-1` or `Number.MAX_SAFE_INTEGER`) but for Node 14 our tests now fail with varying errors on different operating system. My guess is that in Node 14, this wraps around, but it is unspecified by the napi docs whether wrap around does happen, so we might have relied on undefined behaviour.\r\n\r\nHere is our failing tests:\r\nhttps://github.com/sodium-friends/sodium-native/blob/91e28b44648164ba8054f22e9a96c826329462bd/test/memory.js#L117-L125\r\n\r\nHere is the macro we use to read a `uint32_t` from a `Number`:\r\nhttps://github.com/sodium-friends/sodium-native/blob/91e28b44648164ba8054f22e9a96c826329462bd/macros.h#L157-L161","author":{"url":"https://github.com/emilbayes","@type":"Person","name":"emilbayes"},"datePublished":"2020-04-28T07:00:06Z","url":"https://github.com/nodejs/node/issues/33117"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:27d4003a-7d1b-d4a4-4d89-59cc5f73909a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9692:2529CF:76031A:9F9DDF:6AED2A44
html-safe-nonce5b762bed965a5fc2cb8d1bd386f66f9d78876c4c6120388925b9e191ef0d793b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjkyOjI1MjlDRjo3NjAzMUE6OUY5RERGOjZBRUQyQTQ0IiwidmlzaXRvcl9pZCI6IjI5OTYyNTIxMTkwMDcwNDYyMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1eb4f9bc1e127ac45fcddf844405a1a524b6376613de6f4b9d9ffaa936a5ad24
hovercard-subject-tagissue:608074787
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/33117/issue_layout
twitter:imagehttps://opengraph.githubassets.com/34a4d711c799da318d2964defa82dc21f3015f04cd4dc48d59d739b1983e1cc1/nodejs/node/issues/33117
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/34a4d711c799da318d2964defa82dc21f3015f04cd4dc48d59d739b1983e1cc1/nodejs/node/issues/33117
og:image:altHi, In sodium-native we have a special malloc that allows you to allocated a mmap'ed buffer with special flags that provide extra protection. The signature is sodium_malloc(bytes) where bytes can b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameemilbayes
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/33117#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F33117
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F33117
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/33117
Reloadhttps://github.com/nodejs/node/issues/33117
Reloadhttps://github.com/nodejs/node/issues/33117
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/33117
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/33117
napi_get_value_uint32 difference between Node 14 and previoushttps://github.com/nodejs/node/issues/33117#top
node-apiIssues and PRs related to Node-API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22node-api%22
https://github.com/emilbayes
emilbayeshttps://github.com/emilbayes
on Apr 28, 2020https://github.com/nodejs/node/issues/33117#issue-608074787
https://github.com/sodium-friends/sodium-native/blob/91e28b44648164ba8054f22e9a96c826329462bd/test/memory.js#L117-L125https://github.com/sodium-friends/sodium-native/blob/91e28b44648164ba8054f22e9a96c826329462bd/test/memory.js#L117-L125
https://github.com/sodium-friends/sodium-native/blob/91e28b44648164ba8054f22e9a96c826329462bd/macros.h#L157-L161https://github.com/sodium-friends/sodium-native/blob/91e28b44648164ba8054f22e9a96c826329462bd/macros.h#L157-L161
himself65https://github.com/himself65
node-apiIssues and PRs related to Node-API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22node-api%22
on Apr 28, 2020https://github.com/nodejs/node/issues/33117#event-3279002330
https://github.com/addaleax
addaleaxhttps://github.com/addaleax
on Apr 28, 2020https://github.com/nodejs/node/issues/33117#issuecomment-620726965
@emilbayeshttps://github.com/emilbayes
ToUint32https://tc39.es/ecma262/#sec-touint32
https://github.com/emilbayes
emilbayeshttps://github.com/emilbayes
on Apr 29, 2020https://github.com/nodejs/node/issues/33117#issuecomment-621024434
https://travis-ci.org/github/sodium-friends/sodium-native/builds/680466769https://travis-ci.org/github/sodium-friends/sodium-native/builds/680466769
https://github.com/gabrielschulhof
gabrielschulhofhttps://github.com/gabrielschulhof
on May 5, 2020https://github.com/nodejs/node/issues/33117#issuecomment-623773916
@emilbayeshttps://github.com/emilbayes
gabrielschulhofhttps://github.com/gabrielschulhof
on May 6, 2020https://github.com/nodejs/node/issues/33117#event-3310604671
n-api: add uint32 test for -1https://github.com/gabrielschulhof/node/commit/7923d9d8bc1e8f22fbc820b69558b7dc5843a563
7923d9dhttps://github.com/gabrielschulhof/node/commit/7923d9d8bc1e8f22fbc820b69558b7dc5843a563
n-api: add uint32 test for -1https://github.com/nodejs/node/commit/e454e9b33f2a3e21d0c36a96d47cf39ce3e42d6c
e454e9bhttps://github.com/nodejs/node/commit/e454e9b33f2a3e21d0c36a96d47cf39ce3e42d6c
codebyterehttps://github.com/codebytere
on May 7, 2020https://github.com/nodejs/node/issues/33117#event-3313590363
n-api: add uint32 test for -1https://github.com/nodejs/node/commit/4ae613001086d4efb3a20a10dfc3c1e3c013e8a0
4ae6130https://github.com/nodejs/node/commit/4ae613001086d4efb3a20a10dfc3c1e3c013e8a0
https://github.com/gabrielschulhof
gabrielschulhofhttps://github.com/gabrielschulhof
on May 18, 2020https://github.com/nodejs/node/issues/33117#issuecomment-630295551
@emilbayeshttps://github.com/emilbayes
gabrielschulhofhttps://github.com/gabrielschulhof
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 18, 2020https://github.com/nodejs/node/issues/33117#event-3348143236
codebyterehttps://github.com/codebytere
on Jun 7, 2020https://github.com/nodejs/node/issues/33117#event-3415831644
n-api: add uint32 test for -1https://github.com/nodejs/node/commit/82da74b1cdcdb85537c1b88b112969ae6bda82fa
82da74bhttps://github.com/nodejs/node/commit/82da74b1cdcdb85537c1b88b112969ae6bda82fa
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/33117
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/33117
node-apiIssues and PRs related to Node-API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22node-api%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.