Blob Blame Raw
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 gcl (2.6.12-55) unstable; urgency=medium
 .
   * disable gprof on aarch64
   * Bug fix: "gcl FTBFS on arm64: Unrecoverable error: Segmentation
     violation..", thanks to Adrian Bunk (Closes: #873052).
Author: Camm Maguire <camm@debian.org>
Bug-Debian: https://bugs.debian.org/873052

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2017-08-24

--- gcl-2.6.12.orig/o/regexpr.c
+++ gcl-2.6.12/o/regexpr.c
@@ -66,6 +66,7 @@ DEFUN_NEW("COMPILE-REGEXP",object,fScomp
 
   char *tmp;
   object res;
+  ufixnum i=0;
 
   if (type_of(p)!= t_string && type_of(p)!=t_symbol)
     not_a_string_or_symbol(p);
@@ -82,9 +83,9 @@ DEFUN_NEW("COMPILE-REGEXP",object,fScomp
   res->v.v_adjustable=0;
   res->v.v_offset=0;
   res->v.v_self=NULL;
-  if (!(res->v.v_self=(void *)regcomp(tmp,&res->v.v_dim)))
+  if (!(res->v.v_self=(void *)regcomp(tmp,&i)))
     FEerror("regcomp failure",0);
-  res->v.v_fillp=res->v.v_dim;
+  res->v.v_fillp=res->v.v_dim=i;
 
   RETURN1(res);