Title: Wrong format specifier for sizeof · Issue #3 · WithSecureLabs/ModuleStomping · GitHub
Open Graph Title: Wrong format specifier for sizeof · Issue #3 · WithSecureLabs/ModuleStomping
X Title: Wrong format specifier for sizeof · Issue #3 · WithSecureLabs/ModuleStomping
Description: The return type of sizeof is size_t which must be printed using %zu. Technically using the wrong format specifier (%llu in this case) invokes UB DbgPrint("Short read of read MmPfnDatabase pointer %p as provided by userspace (read %llu of...
Open Graph Description: The return type of sizeof is size_t which must be printed using %zu. Technically using the wrong format specifier (%llu in this case) invokes UB DbgPrint("Short read of read MmPfnDatabase pointer %...
X Description: The return type of sizeof is size_t which must be printed using %zu. Technically using the wrong format specifier (%llu in this case) invokes UB DbgPrint("Short read of read MmPfnDatabase poin...
Opengraph URL: https://github.com/WithSecureLabs/ModuleStomping/issues/3
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong format specifier for sizeof","articleBody":"The return type of `sizeof` is `size_t` which must be printed using `%zu`. Technically using the wrong format specifier (`%llu` in this case) invokes UB\r\n```\r\nDbgPrint(\"Short read of read MmPfnDatabase pointer %p as provided by userspace (read %llu of %llu bytes)\\n\", MmPfnDatabaseUnsafe, bytesRead, sizeof(PVOID));\r\n\r\nDbgPrint(\"Failed to read PFN from PFN database at %p (%p[0x%16llx]): NTSTATUS 0x%08lx, transferred %llu of %llu bytes\\n\", srcAddress.VirtualAddress, MmPfnDatabase, pfnArray[pfnIdx], s, numRead, sizeof(struct PFN));\r\n```\r\nhttps://github.com/countercept/ModuleStomping/blob/56c778b37229606818487b87e96d74b1db858817/driver/driver.c#L195\r\n\r\nhttps://github.com/countercept/ModuleStomping/blob/56c778b37229606818487b87e96d74b1db858817/driver/driver.c#L342","author":{"url":"https://github.com/phuclv90","@type":"Person","name":"phuclv90"},"datePublished":"2020-08-25T07:30:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/ModuleStomping/issues/3"}
| 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:091809c1-060e-c740-5801-bab01a3bb71f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B970:2EB7C2:17EA7BB:2292819:6A4CEC0B |
| html-safe-nonce | 1f7c980719a184730ac9515660f8e7c1ad121775866f69ec64f8a05a9e94e06c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTcwOjJFQjdDMjoxN0VBN0JCOjIyOTI4MTk6NkE0Q0VDMEIiLCJ2aXNpdG9yX2lkIjoiMzc0MjEwNTQ1ODAzNjIzOTM3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8dd881a51381e3afffc655c43af53230bf79b878a4984280c6dabc46b2d17dec |
| hovercard-subject-tag | issue:685247585 |
| 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/WithSecureLabs/ModuleStomping/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8bdbb536b6ca66f0b474e5fce21a2615699f1d55bc668dcd0f1f5f7728d55898/WithSecureLabs/ModuleStomping/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8bdbb536b6ca66f0b474e5fce21a2615699f1d55bc668dcd0f1f5f7728d55898/WithSecureLabs/ModuleStomping/issues/3 |
| og:image:alt | The return type of sizeof is size_t which must be printed using %zu. Technically using the wrong format specifier (%llu in this case) invokes UB DbgPrint("Short read of read MmPfnDatabase pointer %... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phuclv90 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/WithSecureLabs/ModuleStomping git https://github.com/WithSecureLabs/ModuleStomping.git |
| octolytics-dimension-user_id | 99874690 |
| octolytics-dimension-user_login | WithSecureLabs |
| octolytics-dimension-repository_id | 202521492 |
| octolytics-dimension-repository_nwo | WithSecureLabs/ModuleStomping |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 202521492 |
| octolytics-dimension-repository_network_root_nwo | WithSecureLabs/ModuleStomping |
| 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 | c5a57f04eeb310f57c73fd6d751d957e2ca27ed2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width