[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/136] New: BFD crashes when cached file can't be reopened
From: |
mikulas at artax dot karlin dot mff dot cuni dot cz |
Subject: |
[Bug binutils/136] New: BFD crashes when cached file can't be reopened |
Date: |
27 Apr 2004 13:46:26 -0000 |
BFD keeps cache of files and has only few files open at a time. When the file is
not in open-descriptor cache, BFD reopens it. BFD crashes trying to work with
NULL FILE * pointer, when reopening file fails.
A lot of code in bfd expects that bfd_cache_lookup always returns non-zero FILE
* pointer. However bfd_cache_lookup may call bfd_cache_lookup_worker and
bfd_cache_lookup_worker may return NULL if file could not be reopened.
You should either modify bfd_cache_lookup_worker to abort instead of returning
NULL or chech non-null pointer at each call to bfd_cache_lookup.
--
Summary: BFD crashes when cached file can't be reopened
Product: binutils
Version: 2.14
Status: NEW
Severity: minor
Priority: P1
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: mikulas at artax dot karlin dot mff dot cuni dot cz
CC: bug-binutils at gnu dot org
GCC build triplet: i586-pc-linux-gnu
GCC host triplet: i486-pc-spad
GCC target triplet: i486-pc-spad
http://sources.redhat.com/bugzilla/show_bug.cgi?id=136
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug binutils/136] New: BFD crashes when cached file can't be reopened,
mikulas at artax dot karlin dot mff dot cuni dot cz <=