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.10-37) unstable; urgency=medium
 .
   * FILE * casts for windows feof wrapper
Author: Camm Maguire <camm@debian.org>

---
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: http://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: <YYYY-MM-DD>

--- gcl-2.6.10.orig/h/elf32_mips_reloc_special.h
+++ gcl-2.6.10/h/elf32_mips_reloc_special.h
@@ -74,11 +74,8 @@ label_got_symbols(void *v1,Shdr *sec1,Sh
   ul q;
 
   for (q=0,sym=sym1;sym<syme;sym++) {
-    if (!strcmp(st1+sym->st_name,"_gp_disp"))
-      sym->st_other=1;
-    else if (!strcmp(st1+sym->st_name,"__gnu_local_gp"))
-      sym->st_other=2;
-    if (sym->st_other) {
+    char *s=st1+sym->st_name;
+    if ((sym->st_other=strcmp(s,"_gp_disp") ? (strcmp(s,"__gnu_local_gp") ? 0 : 2) : 1)) {
       q++;
       sym->st_info=ELF_ST_INFO(STB_LOCAL,ELF_ST_TYPE(sym->st_info));
     }
--- gcl-2.6.10.orig/o/array.c
+++ gcl-2.6.10/o/array.c
@@ -550,6 +550,8 @@ DEFUN_NEW("MAKE-ARRAY1",object,fSmake_ar
       { x->a.a_dims[i] = FIX_CHECK(Mcar(v));
 	if (x->a.a_dims[i] < 0)
 	  { FEerror("Dimension must be non negative",0);}
+	if (x->a.a_dims[i]>((1UL<<(sizeof(dim)*8-1))-1)/dim)
+	  FEerror("Total dimension overflow on dimensions ~s",1,dimensions);
 	dim *= x->a.a_dims[i++];
 	v = Mcdr(v);}
     x->a.a_dim = dim;
