[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3a17b9f: Fix assertion violation in pdumper.c

From: Paul Eggert
Subject: master 3a17b9f: Fix assertion violation in pdumper.c
Date: Mon, 17 Aug 2020 12:30:45 -0400 (EDT)

branch: master
commit 3a17b9f265fd6d42e82f649533027b4531f9dabf
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Fix assertion violation in pdumper.c
    * src/pdumper.c (pdumper_find_object_type_impl): When checking
    last_mark_bits, require the offset to be less than
    discardable_start, not cold_start.  This fixes a typo introduced in
    2020-08-14T21:33:21Z!eggert@cs.ucla.edu (Bug#42832).
 src/pdumper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pdumper.c b/src/pdumper.c
index 2d1b192..217ffa6 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -4999,7 +4999,7 @@ pdumper_find_object_type_impl (const void *obj)
   if (offset % DUMP_ALIGNMENT != 0)
     return PDUMPER_NO_OBJECT;
   ptrdiff_t bitno = offset / DUMP_ALIGNMENT;
-  if (offset < dump_private.header.cold_start
+  if (offset < dump_private.header.discardable_start
       && !dump_bitset_bit_set_p (&dump_private.last_mark_bits, bitno))
     return PDUMPER_NO_OBJECT;
   const struct dump_reloc *reloc =

reply via email to

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