Title: Error if allocated memory spans over the address 0x100000000 (4GB) · Issue #63 · fancycode/MemoryModule · GitHub
Open Graph Title: Error if allocated memory spans over the address 0x100000000 (4GB) · Issue #63 · fancycode/MemoryModule
X Title: Error if allocated memory spans over the address 0x100000000 (4GB) · Issue #63 · fancycode/MemoryModule
Description: FinalizeSections will fail if the allocated memory spans over the address 0x100000000 (4GB) since the addresses in the IMAGE_SECTION_HEADER are only 32-bit values. I could fix it by putting the following code after the allocation of the ...
Open Graph Description: FinalizeSections will fail if the allocated memory spans over the address 0x100000000 (4GB) since the addresses in the IMAGE_SECTION_HEADER are only 32-bit values. I could fix it by putting the fol...
X Description: FinalizeSections will fail if the allocated memory spans over the address 0x100000000 (4GB) since the addresses in the IMAGE_SECTION_HEADER are only 32-bit values. I could fix it by putting the fol...
Opengraph URL: https://github.com/fancycode/MemoryModule/issues/63
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error if allocated memory spans over the address 0x100000000 (4GB)","articleBody":"FinalizeSections will fail if the allocated memory spans over the address 0x100000000 (4GB) since the addresses in the IMAGE_SECTION_HEADER are only 32-bit values.\r\nI could fix it by putting the following code after the allocation of the variable \"code\":\r\n\r\n#ifdef _WIN64\r\n // check that memory-block does not span over the 4GB border\r\n if(code \u003c (LPVOID)0x100000000 \u0026\u0026 code + alignedImageSize \u003e= (LPVOID)0x100000000)\r\n {\r\n auto old_code = code;\r\n code = (unsigned char *)allocMemory(NULL,\r\n alignedImageSize,\r\n MEM_RESERVE | MEM_COMMIT,\r\n PAGE_READWRITE,\r\n userdata);\r\n freeMemory(old_code, 0, MEM_RELEASE, userdata);\r\n if(code == NULL) {\r\n SetLastError(ERROR_OUTOFMEMORY);\r\n return NULL;\r\n }\r\n }\r\n#endif\r\n","author":{"url":"https://github.com/tobias-loew","@type":"Person","name":"tobias-loew"},"datePublished":"2017-05-11T03:55:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/63/MemoryModule/issues/63"}
| 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:a0e3e7a6-bdc1-570e-1784-da81e657c135 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B970:30EA87:29ABB50:3C5BBB1:6A5661CA |
| html-safe-nonce | 3b1685f0417c5d4399025df1e3f5f64e4653bba7cf24376e6f994e7f420828b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTcwOjMwRUE4NzoyOUFCQjUwOjNDNUJCQjE6NkE1NjYxQ0EiLCJ2aXNpdG9yX2lkIjoiNTE1NjQ5MzY4Mzg4MjA5MDk1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 085d901ac2932d5d0200c839aec58c818bb0332ba7547c4c498c811ed16366d3 |
| hovercard-subject-tag | issue:227871887 |
| 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/fancycode/MemoryModule/63/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7694437d850c1fe93c32522be093f7650ba0412c9dea3dddd572e23e500f3a72/fancycode/MemoryModule/issues/63 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7694437d850c1fe93c32522be093f7650ba0412c9dea3dddd572e23e500f3a72/fancycode/MemoryModule/issues/63 |
| og:image:alt | FinalizeSections will fail if the allocated memory spans over the address 0x100000000 (4GB) since the addresses in the IMAGE_SECTION_HEADER are only 32-bit values. I could fix it by putting the fol... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tobias-loew |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6a3afe34dff341ad10912db44becf282289d7f2af20576241738530fbb28de01 |
| turbo-cache-control | no-preview |
| go-import | github.com/fancycode/MemoryModule git https://github.com/fancycode/MemoryModule.git |
| octolytics-dimension-user_id | 247730 |
| octolytics-dimension-user_login | fancycode |
| octolytics-dimension-repository_id | 1018522 |
| octolytics-dimension-repository_nwo | fancycode/MemoryModule |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1018522 |
| octolytics-dimension-repository_network_root_nwo | fancycode/MemoryModule |
| 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 | b71002134df95575e9f6c2945a64d454b0be181e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width