diff options
author | Christopher Faylor <me@cgf.cx> | 2003-09-18 01:46:18 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-09-18 01:46:18 +0000 |
commit | b1e00863f3c6c84b0ae3a67db9d3b20f536ffb72 (patch) | |
tree | eed7e7c7785aa8ba8d746de9172d48f458f22f3a /winsup/utils/parse_pe.cc | |
parent | f7f542063b1f8231286d2a275d465bd887305b50 (diff) | |
download | cygnal-b1e00863f3c6c84b0ae3a67db9d3b20f536ffb72.tar.gz cygnal-b1e00863f3c6c84b0ae3a67db9d3b20f536ffb72.tar.bz2 cygnal-b1e00863f3c6c84b0ae3a67db9d3b20f536ffb72.zip |
* parse_pe.cc (exclusion::sort_and_check): Make error message a little more
explicit and ignore (hopefully) harmless region overlap.
Diffstat (limited to 'winsup/utils/parse_pe.cc')
-rw-r--r-- | winsup/utils/parse_pe.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/utils/parse_pe.cc b/winsup/utils/parse_pe.cc index 07242da87..4dc7d4f0a 100644 --- a/winsup/utils/parse_pe.cc +++ b/winsup/utils/parse_pe.cc @@ -1,6 +1,6 @@ /* parse_pe.cc - Copyright 1999,2000,2001 Red Hat, Inc. + Copyright 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. Written by Egor Duda <deo@logos-m.ru> @@ -47,9 +47,11 @@ exclusion::sort_and_check () for (process_mem_region * p = region; p < region + last - 1; p++) { process_mem_region *q = p + 1; + if (q == p + 1) + continue; if (p->base + size > q->base) { - fprintf (stderr, "region error @ %08x", (unsigned) p->base); + fprintf (stderr, "region error @ (%8p + %d) > %8p\n", (unsigned) p->base, size, q->base); return 0; } } |