forked from Imagelibrary/binutils-gdb
Re: Usage of unitialized heap in tic4x_print_cond
PR 25319 * tic4x-dis.c (tic4x_print_cond): Correct order of xcalloc args.
This commit is contained in:
@@ -277,7 +277,7 @@ tic4x_print_cond (struct disassemble_info *info, unsigned int cond)
|
||||
|
||||
if (condtable == NULL)
|
||||
{
|
||||
condtable = xcalloc (sizeof (tic4x_cond_t *), 32);
|
||||
condtable = xcalloc (32, sizeof (tic4x_cond_t *));
|
||||
for (i = 0; i < tic4x_num_conds; i++)
|
||||
condtable[tic4x_conds[i].cond] = (tic4x_cond_t *)(tic4x_conds + i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user