$OpenBSD: patch-texk_web2c_eptexdir_eptex_ech,v 1.1 2011/11/23 12:00:45 edd Exp $

dvips, e-ptex fixes (buffer overflow/memory corruption) on tl11 branch.
http://tug.org/pipermail/tldistro/2011q4/000149.html

--- texk/web2c/eptexdir/eptex.ech.origy	Fri Apr 15 12:47:24 2011
+++ texk/web2c/eptexdir/eptex.ech	Sun Oct 23 20:54:17 2011
@@ -283,6 +283,19 @@ disp_node: begin
 othercases goto next_p
 @z
 
+@x e-pTeX: just_copy
+  hlist_node,vlist_node: begin r:=get_node(box_node_size);
+@y
+  dir_node,
+  hlist_node,vlist_node: begin r:=get_node(box_node_size);
+@z
+@x e-pTeX: just_copy
+    words:=5; list_ptr(r):=null; {this affects |mem[r+5]|}
+@y
+    words:=5; list_ptr(r):=null; {this affects |mem[r+5]|}
+    add_glue_ref(space_ptr(r)); add_glue_ref(xspace_ptr(r));
+@z
+
 @x e-pTeX: ifcsname l.28620
   buffer[m]:=info(p) mod @'400; incr(m); p:=link(p);
 @y
