[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Assumption about size of bfd_vma in opcodes/arm-dis.c
From: |
Mathias Svensson |
Subject: |
Assumption about size of bfd_vma in opcodes/arm-dis.c |
Date: |
Wed, 26 Jun 2013 16:50:40 +0200 |
Hello,
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 have attached a patch, that I believe will fix this instance of the
problem without introducing new ones.
--
Mathias Svensson
bfd_vma.patch
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Assumption about size of bfd_vma in opcodes/arm-dis.c,
Mathias Svensson <=