Skip to content

Commit

Permalink
Fix #23910 - Fix recent regression about invalid word size in dbt
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 20, 2025
1 parent b4f74f0 commit 412d93a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libr/debug/p/native/bt/fuzzy_all.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ static int iscallret(RDebug *dbg, ut64 addr) {
}

static RList *backtrace_fuzzy(RDebug *dbg, ut64 at) {
ut8 *stack, *ptr;
int wordsize = dbg->bits; // XXX, dbg->bits is wordsize not bits
ut8 *ptr;
const int wordsize = dbg->bits / 8;
ut64 sp;
RIOBind *bio = &dbg->iob;
int i, stacksize;
int i;
ut64 *p64, addr = 0LL;
ut32 *p32;
ut16 *p16;
ut64 cursp, oldsp;
RList *list;

stacksize = 1024*512; // 512KB .. should get the size from the regions if possible
stack = malloc (stacksize);
const int stacksize = 1024 * 512; // 512KB .. should get the size from the regions if possible
ut8 *stack = malloc (stacksize);
if (!stack) {
return NULL;
}
Expand Down

0 comments on commit 412d93a

Please sign in to comment.