[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Was having a crash with 2.13/CVS ld; this change has fixed it
From: |
Nicholas Adrian Vinen |
Subject: |
Was having a crash with 2.13/CVS ld; this change has fixed it |
Date: |
Sat, 26 Oct 2002 06:50:19 +0000 (UTC) |
bfd/elflink.h:
8144c8144
< bytes = (size / file_align + 1) * sizeof (boolean);
---
> bytes = (size / file_align + 2) * sizeof (boolean);
The realloc a few lines below was crashing. Perhaps the memory block
was trashed past the end? Since the ptr is stored as ptr-1, perhaps the
extra +1 is needed to make up for it (the other +1 is because if you
want to index data at 7, you need 8 bytes...)
Nicholas
- Was having a crash with 2.13/CVS ld; this change has fixed it,
Nicholas Adrian Vinen <=