Fix bug in windbg_read_reg() (#16086)

This commit is contained in:
Paul I 2020-03-02 08:38:17 +03:00 committed by GitHub
parent 5ad486923e
commit 3a8388bab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -477,7 +477,7 @@ RList *windbg_list_modules(WindCtx *ctx) {
// LIST_ENTRY InMemoryOrderModuleList
ut64 mlistoff = ctx->is_x64 ? 0x20 : 0x14;
base = ptr + mlistoff;
windbg_read_at_uva (ctx, (uint8_t *) &ptr, base, 4 << ctx->is_x64);
@ -1003,7 +1003,7 @@ int windbg_read_reg(WindCtx *ctx, uint8_t *buf, int size) {
return 0;
}
memcpy (buf, rr->data, R_MIN (size, pkt->length - sizeof (rr)));
memcpy (buf, rr->data, R_MIN (size, pkt->length - sizeof (*rr)));
free (pkt);