Title: addActiveElementSegment out of bound · Issue #96 · AssemblyScript/binaryen.js · GitHub
Open Graph Title: addActiveElementSegment out of bound · Issue #96 · AssemblyScript/binaryen.js
X Title: addActiveElementSegment out of bound · Issue #96 · AssemblyScript/binaryen.js
Description: by console.log("e.table", e.table, data.length) console.log("table", binaryen.getTableInfo(this.module.getTable(e.table))) output e.table 0 185325 table { name: '0', module: '', base: '', initial: 185326, max: 185326 } we know table's ca...
Open Graph Description: by console.log("e.table", e.table, data.length) console.log("table", binaryen.getTableInfo(this.module.getTable(e.table))) output e.table 0 185325 table { name: '0', module: '', base: '', initial: ...
X Description: by console.log("e.table", e.table, data.length) console.log("table", binaryen.getTableInfo(this.module.getTable(e.table))) output e.table 0 185325 table { name: '0', mod...
Opengraph URL: https://github.com/AssemblyScript/binaryen.js/issues/96
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"addActiveElementSegment out of bound","articleBody":"by\r\n\r\n```\r\nconsole.log(\"e.table\", e.table, data.length)\r\nconsole.log(\"table\", binaryen.getTableInfo(this.module.getTable(e.table)))\r\n```\r\noutput \r\n```\r\ne.table 0 185325\r\ntable { name: '0', module: '', base: '', initial: 185326, max: 185326 }\r\n```\r\n\r\n we know table's capacity is 185326. data length is 185325.\r\n\r\nthen, call addActiveElementSegment\r\n\r\n`this.module.addActiveElementSegment(e.table, this.module.i32.const(0), data)`\r\n\r\nit is crash\r\n```\r\n\r\nRangeError: offset is out of bounds\r\n at Int32Array.set (\u003canonymous\u003e)\r\n at H (file:///home/niu2x/project/wasm-knife/node_modules/binaryen/index.js:7:9932452)\r\n at file:///home/niu2x/project/wasm-knife/node_modules/binaryen/index.js:7:9980342\r\n at R (file:///home/niu2x/project/wasm-knife/node_modules/binaryen/index.js:7:9932359)\r\n at HA.I.addActiveElementSegment (file:///home/niu2x/project/wasm-knife/node_modules/binaryen/index.js:7:9980289)\r\n\r\n```\r\n","author":{"url":"https://github.com/niu2x","@type":"Person","name":"niu2x"},"datePublished":"2024-08-04T09:29:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/96/binaryen.js/issues/96"}
| 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:02d9b538-5a35-0102-383b-b391494951cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CF6:56F73:67A1E4C:87E1E6D:696DBCEC |
| html-safe-nonce | 60605bb0c1c4cd3d95a88e50d5c2bd1d697727628ec3fce57280fc988872413a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0Y2OjU2RjczOjY3QTFFNEM6ODdFMUU2RDo2OTZEQkNFQyIsInZpc2l0b3JfaWQiOiIxNjMzNjQ5NTUwNzc1MTM5NTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9099df895b93b37ebd817dc2c73c81947c40035edaafc8b5e49fc00f76318981 |
| hovercard-subject-tag | issue:2447018205 |
| 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/AssemblyScript/binaryen.js/96/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f38edd374716dab1280e917c03b2e5ec4f2f06dbddfe2642759af312f3749ac/AssemblyScript/binaryen.js/issues/96 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f38edd374716dab1280e917c03b2e5ec4f2f06dbddfe2642759af312f3749ac/AssemblyScript/binaryen.js/issues/96 |
| og:image:alt | by console.log("e.table", e.table, data.length) console.log("table", binaryen.getTableInfo(this.module.getTable(e.table))) output e.table 0 185325 table { name: '0', module: '', base: '', initial: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | niu2x |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/binaryen.js git https://github.com/AssemblyScript/binaryen.js.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 94132831 |
| octolytics-dimension-repository_nwo | AssemblyScript/binaryen.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 94132831 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/binaryen.js |
| 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 | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width