bug-binutils
[Top][All Lists]
Advanced

[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

Attachment: bfd_vma.patch
Description: Binary data


reply via email to

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