OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/cfg_syn.c versions 1.9 and 1.10
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/cfg_syn.c 1.9 -> 1.10

--- cfg_syn.c    2002/07/05 20:49:58     1.9
+++ cfg_syn.c    2002/07/08 13:45:13     1.10
@@ -109,7 +109,15 @@
 
     /* determine first and last positions of token */
     cpF = ctx->inputbuf+loc->first;
+    if (cpF < ctx->inputbuf)
+        cpF = ctx->inputbuf;
+    if (cpF > ctx->inputbuf+ctx->inputlen)
+        cpF = ctx->inputbuf+ctx->inputlen;
     cpL = ctx->inputbuf+loc->last;
+    if (cpL < ctx->inputbuf)
+        cpL = ctx->inputbuf;
+    if (cpL > ctx->inputbuf+ctx->inputlen)
+        cpL = ctx->inputbuf+ctx->inputlen;
 
     /* determine epilog and prolog of token */
     cpP = cpF-4;

CVSTrac 2.0.1