diff options
| author | Roland McGrath <[email protected]> | 2010-06-01 15:42:14 -0700 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-06-01 15:42:14 -0700 |
| commit | 0b3363e95173ddee5eed7be767f8ae31efa78d88 (patch) | |
| tree | 7fbecad12ffe5f1e0c93bb5f7ec3ff372da9edf5 /libdw/libdw_findcu.c | |
| parent | 08e71dbedcd97273432d55ab0e4c476c287a5aa6 (diff) | |
Handle DWARF version 4 CUs.
Diffstat (limited to 'libdw/libdw_findcu.c')
| -rw-r--r-- | libdw/libdw_findcu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdw/libdw_findcu.c b/libdw/libdw_findcu.c index afff6d3a..cf79c639 100644 --- a/libdw/libdw_findcu.c +++ b/libdw/libdw_findcu.c @@ -1,5 +1,5 @@ /* Find CU for given offset. - Copyright (C) 2003, 2004, 2005, 2007 Red Hat, Inc. + Copyright (C) 2003-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper <[email protected]>, 2003. @@ -121,8 +121,8 @@ __libdw_findcu (dbg, start) + (2 * offset_size - 4)); uint16_t version = read_2ubyte_unaligned (dbg, bytes); - /* We only know how to handle the DWARF version 2 and 3 formats. */ - if (unlikely (version != 2) && unlikely (version != 3)) + /* We only know how to handle the DWARF version 2 through 4 formats. */ + if (unlikely (version < 2) || unlikely (version > 4)) goto invalid; /* Create an entry for this CU. */ |
