OSSP CVS Repository

ossp - Check-in [3082]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3082
Date: 2003-Jan-20 18:43:21 (local)
2003-Jan-20 17:43:21 (UTC)
User:mlelstv
Branch:
Comment: correctly limit sio_input data transfer
Tickets:
Inspections:
Files:
ossp-pkg/sio/sio.c      1.21 -> 1.22     6 inserted, 0 deleted

ossp-pkg/sio/sio.c 1.21 -> 1.22

--- sio.c        2003/01/20 16:16:40     1.21
+++ sio.c        2003/01/20 17:43:21     1.22
@@ -571,6 +571,12 @@
 
     }
 
+    /*
+     * clamp to requested size
+     */
+    if (n > limit)
+        n = limit;
+
     while (n > 0) {
         if (label == NULL) {
             datastart = 0;

CVSTrac 2.0.1