Commit 2e9d1f4d authored by Philipp Stephani's avatar Philipp Stephani

* src/alloc.c (mark_maybe_object): Avoid signed integer overflow

parent e6eb554b
Pipeline #6203 failed with stage
in 64 minutes and 1 second
......@@ -4652,7 +4652,8 @@ mark_maybe_object (Lisp_Object obj)
(void) overflow;
void *po = (char *) ((intptr_t) (char *) XLP (obj) + offset);
INT_ADD_WRAPV (offset, (intptr_t) (char *) XLP (obj), &offset);
void *po = (char *) offset;
/* If the pointer is in the dump image and the dump has a record
of the object starting at the place where the pointer points, we
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment