bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assumption about size of bfd_vma in opcodes/arm-dis.c


From: nick clifton
Subject: Re: Assumption about size of bfd_vma in opcodes/arm-dis.c
Date: Fri, 19 Jul 2013 12:11:08 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17.1

Hi Mathias,
In multiple places in opcodes/arm-dis.c there is an implcit assumption
that bfd_vma has the same size as an int. See for example lines
2014-2033 in HEAD.

This can cause a segfault e.g. if binutils is compiled on i386 with
--enable-64-bit-bfd --target=arm-linux.

I am confused - how does this assumption cause a seg-fault ?

In the places where your patch changes bfd_vma to int, the value is being passed to print_addres_func(), which expects a bfd_vma parameter. so I fail to see why there is a problem.

Cheers
  Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]