d60bed4
Description: <short summary of the patch>
d60bed4
 TODO: Put a short summary on the line above and replace this paragraph
d60bed4
 with a longer explanation of this change. Complete the meta-information
d60bed4
 with other relevant fields (see below for details). To make it easier, the
d60bed4
 information below has been extracted from the changelog. Adjust it or drop
d60bed4
 it.
d60bed4
 .
d60bed4
 gcl (2.6.12-85) unstable; urgency=medium
d60bed4
 .
d60bed4
   * Version_2_6_13pre81
d60bed4
Author: Camm Maguire <camm@debian.org>
d60bed4
d60bed4
---
d60bed4
The information above should follow the Patch Tagging Guidelines, please
d60bed4
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
d60bed4
are templates for supplementary fields that you might want to add:
d60bed4
d60bed4
Origin: <vendor|upstream|other>, <url of original patch>
d60bed4
Bug: <url in upstream bugtracker>
d60bed4
Bug-Debian: https://bugs.debian.org/<bugnumber>
d60bed4
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
d60bed4
Forwarded: <no|not-needed|url proving that it has been forwarded>
d60bed4
Reviewed-By: <name and email of someone who approved the patch>
d60bed4
Last-Update: 2019-03-28
d60bed4
d60bed4
--- gcl-2.6.12.orig/o/alloc.c
d60bed4
+++ gcl-2.6.12/o/alloc.c
d60bed4
@@ -349,9 +349,10 @@ resize_hole(ufixnum hp,enum type tp,bool
d60bed4
   char *start=rb_begin(),*new_start=heap_end+hp*PAGESIZE;
d60bed4
   ufixnum size=rb_pointer-start;
d60bed4
 
d60bed4
+#define OVERLAP(c_,t_,s_) ((t_)<(c_)+(s_) && (c_)<(t_)+(s_))
d60bed4
   if (!in_placep && (rb_high() ?
d60bed4
-		     new_start+size>rb_end :
d60bed4
-		     new_start+(nrbpage<
d60bed4
+		     OVERLAP(start,new_start,size) :
d60bed4
+		     OVERLAP(start,new_start+(nrbpage<
d60bed4
 		     /* 0 (20190401  never reached)*/
d60bed4
 		     )) {
d60bed4
     if (sSAnotify_gbcA->s.s_dbind != Cnil)