bde
d16ff5c400
Fixed overflow and sign extension bugs in
...
`len = min(so->so_snd.sb_cc, win) - off;'. min() has type u_int
and `off' has type int, so when min() is 0 and `off' is 1, the RHS
overflows to 0U - 1 = UINT_MAX. `len' has type long, so when
sizeof(long) == sizeof(int), the LHS normally overflows to to the
correct value of -1, but when sizeof(long) > sizeof(int), the LHS
is UINT_MAX.
Fixed some u_long's that should have been fixed-sized types.
1998-07-13 11:53:59 +00:00
..
1998-06-24 06:58:00 +00:00
1998-06-20 18:37:51 +00:00
1997-09-07 05:27:26 +00:00
1998-02-06 12:14:30 +00:00
1998-02-03 21:52:02 +00:00
1998-06-12 03:48:19 +00:00
1998-01-08 23:42:31 +00:00
1997-02-22 09:48:43 +00:00
1997-09-07 05:27:26 +00:00
1997-10-12 20:26:33 +00:00
1997-02-22 09:48:43 +00:00
1997-02-22 09:48:43 +00:00
1997-11-07 08:53:44 +00:00
1997-06-18 01:24:28 +00:00
1998-05-15 20:11:40 +00:00
1998-05-15 20:11:40 +00:00
1998-03-21 11:34:28 +00:00
1998-03-30 09:56:58 +00:00
1998-07-13 10:54:24 +00:00
1998-06-07 17:13:14 +00:00
1998-06-07 17:13:14 +00:00
1998-07-06 03:20:19 +00:00
1998-06-20 18:37:51 +00:00
1997-11-16 05:55:52 +00:00
1998-06-20 18:18:05 +00:00
1998-07-06 09:06:58 +00:00
1998-06-20 18:37:51 +00:00
1998-06-20 18:37:51 +00:00
1998-06-21 14:53:44 +00:00
1998-05-19 15:53:50 +00:00
1998-03-21 11:34:28 +00:00
1998-06-20 18:18:05 +00:00
1998-06-20 18:37:51 +00:00
1998-07-06 03:20:19 +00:00
1998-07-06 03:20:19 +00:00
1998-05-26 11:34:30 +00:00
1998-07-13 11:01:03 +00:00
1998-07-08 08:49:51 +00:00
1998-04-06 11:40:42 +00:00
1998-06-30 10:56:31 +00:00
1997-02-22 09:48:43 +00:00
1998-06-20 18:37:51 +00:00
1998-06-20 18:18:05 +00:00
1998-07-06 05:04:33 +00:00
1998-06-20 18:37:51 +00:00
1998-03-21 10:11:54 +00:00
1998-06-20 18:37:51 +00:00
1998-06-20 18:18:05 +00:00
1998-07-06 03:20:19 +00:00
1998-06-07 12:00:13 +00:00
1998-06-20 18:18:05 +00:00
1998-06-20 18:18:05 +00:00
1998-05-15 20:11:40 +00:00
1998-01-08 23:42:31 +00:00
1997-02-22 09:48:43 +00:00
1997-08-16 19:16:27 +00:00
1998-07-06 03:20:19 +00:00
1998-07-13 11:53:59 +00:00
1998-07-06 03:20:19 +00:00
1997-02-22 09:48:43 +00:00
1998-05-15 20:11:40 +00:00
1998-04-24 09:25:39 +00:00
1997-09-07 05:27:26 +00:00
1998-05-15 20:11:40 +00:00
1998-01-27 09:15:13 +00:00
1998-07-13 11:09:52 +00:00
1998-07-13 11:09:52 +00:00
1997-02-22 09:48:43 +00:00
1998-05-15 20:11:40 +00:00
1998-05-15 20:11:40 +00:00
1997-02-22 09:48:43 +00:00