dwmalone
e84823c8d6
Here v->iov_len has been assigned the return value from snprintf.
...
Checking if it is > 0 doesn't make sense, because snprintf returns
how much space is needed if the buffer is too small. Instead, check
if the return value was greater than the buffer size, and truncate
the message if it was too long.
It isn't clear if snprintf can return a negative value in the case
of an error - I don't believe it can. If it can, then testing
v->iov_len won't help 'cos it is a size_t, not an ssize_t.
Also, as clang points out, we must always increment v here, because
later code depends on the message being in iov[5].
2011-01-19 17:17:37 +00:00
..
2010-12-06 10:24:06 +00:00
2010-01-02 11:07:44 +00:00
2011-01-13 17:32:32 +00:00
2010-05-13 12:07:55 +00:00
2010-08-23 22:24:11 +00:00
2010-12-28 10:08:50 +00:00
2010-08-23 22:24:11 +00:00
2010-11-22 14:16:22 +00:00
2010-11-30 16:14:19 +00:00
2010-04-14 19:08:06 +00:00
2010-01-02 11:07:44 +00:00
2010-02-26 09:41:16 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-11-22 14:16:22 +00:00
2010-12-06 11:37:24 +00:00
2010-01-04 18:08:16 +00:00
2010-12-20 22:56:50 +00:00
2010-01-02 11:07:44 +00:00
2010-10-08 12:40:16 +00:00
2010-01-07 09:40:34 +00:00
2010-01-02 11:07:44 +00:00
2010-06-05 08:11:11 +00:00
2010-01-02 11:07:44 +00:00
2010-10-08 12:40:16 +00:00
2010-05-19 08:57:53 +00:00
2010-12-11 09:38:12 +00:00
2011-01-07 18:52:08 +00:00
2010-11-30 16:04:40 +00:00
2010-05-14 01:25:30 +00:00
2010-10-08 12:40:16 +00:00
2010-04-14 19:08:06 +00:00
2010-12-08 01:35:19 +00:00
2010-05-17 11:18:33 +00:00
2010-10-08 12:40:16 +00:00
2010-04-14 19:08:06 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-02-16 21:47:05 +00:00
2010-05-12 21:25:05 +00:00
2010-12-08 10:27:07 +00:00
2010-01-15 16:01:22 +00:00
2010-05-27 13:56:19 +00:00
2010-04-14 19:08:06 +00:00
2010-04-14 19:08:06 +00:00
2010-04-14 19:08:06 +00:00
2010-12-07 16:30:52 +00:00
2010-10-08 12:40:16 +00:00
2010-11-10 14:33:09 +00:00
2010-02-16 09:10:21 +00:00
2011-01-04 02:52:22 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-12-11 09:38:12 +00:00
2010-05-19 08:57:53 +00:00
2010-01-02 11:07:44 +00:00
2010-10-08 12:40:16 +00:00
2009-05-27 18:57:13 +00:00
2010-01-02 11:07:44 +00:00
2010-12-11 09:38:12 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-08-28 16:32:01 +00:00
2010-10-08 12:40:16 +00:00
2010-01-02 11:07:44 +00:00
2010-07-08 19:22:52 +00:00
2010-11-22 14:16:22 +00:00
2011-01-13 16:42:16 +00:00
2009-02-26 21:43:15 +00:00
2010-08-28 15:03:11 +00:00
2010-04-11 12:07:03 +00:00
2010-12-20 19:08:15 +00:00
2010-12-11 09:38:12 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-10-12 21:01:26 +00:00
2010-11-07 16:05:04 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-10-08 12:40:16 +00:00
2010-11-19 15:39:59 +00:00
2010-10-08 12:40:16 +00:00
2010-12-20 08:54:30 +00:00
2010-10-08 12:40:16 +00:00
2010-03-04 16:07:14 +00:00
2010-05-13 12:07:55 +00:00
2010-01-02 11:07:44 +00:00
2010-12-20 09:28:28 +00:00
2010-06-15 19:19:04 +00:00
2010-05-19 08:57:53 +00:00
2010-11-22 14:36:04 +00:00
2010-10-21 12:27:13 +00:00
2010-05-14 01:45:05 +00:00
2010-09-22 18:46:17 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:05:34 +00:00
2011-01-08 01:57:23 +00:00
2010-12-31 01:10:42 +00:00
2010-08-16 15:18:30 +00:00
2010-08-16 15:18:30 +00:00
2010-07-20 00:32:11 +00:00
2009-05-29 22:19:45 +00:00
2010-08-06 14:33:42 +00:00
2010-12-20 09:36:54 +00:00
2010-01-02 11:07:44 +00:00
2010-05-19 08:57:53 +00:00
2010-10-14 11:20:23 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-01-10 19:57:18 +00:00
2010-09-16 16:03:12 +00:00
2010-04-14 19:08:06 +00:00
2010-12-22 15:44:25 +00:00
2010-10-16 17:30:27 +00:00
2010-10-11 14:31:24 +00:00
2010-09-03 13:54:02 +00:00
2010-01-02 11:07:44 +00:00
2010-12-19 23:09:42 +00:00
2010-08-17 09:11:38 +00:00
2010-10-18 07:28:53 +00:00
2010-04-14 19:08:06 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-10-08 12:40:16 +00:00
2010-01-02 11:07:44 +00:00
2008-09-14 11:50:19 +00:00
2010-03-04 13:35:57 +00:00
2010-12-06 09:37:56 +00:00
2010-03-16 06:12:30 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-12-20 21:12:18 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-08-01 09:37:36 +00:00
2010-02-17 06:11:05 +00:00
2010-01-02 11:07:44 +00:00
2010-12-23 01:45:48 +00:00
2011-01-04 17:27:17 +00:00
2010-05-13 12:08:11 +00:00
2010-01-21 17:25:12 +00:00
2010-05-13 12:08:11 +00:00
2011-01-12 14:55:02 +00:00
2010-01-03 15:32:25 +00:00
2010-06-11 06:03:47 +00:00
2010-10-05 06:31:11 +00:00
2009-04-23 08:37:56 +00:00
2010-04-14 19:08:06 +00:00
2010-04-14 19:08:06 +00:00
2008-06-09 08:43:27 +00:00
2010-05-27 13:56:19 +00:00
2010-05-19 08:57:53 +00:00
2011-01-13 17:30:18 +00:00
2011-01-17 00:15:01 +00:00
2011-01-19 17:17:37 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-10-30 16:30:50 +00:00
2010-12-11 09:38:12 +00:00
2010-12-04 14:19:27 +00:00
2010-12-11 09:38:12 +00:00
2009-02-26 20:59:05 +00:00
2011-01-12 14:55:02 +00:00
2010-05-12 01:33:51 +00:00
2010-07-30 11:58:18 +00:00
2010-07-20 03:11:26 +00:00
2010-11-10 23:45:44 +00:00
2011-01-13 16:37:12 +00:00
2010-10-08 12:40:16 +00:00
2010-01-02 11:07:44 +00:00
2010-02-09 17:16:13 +00:00
2008-08-15 13:07:07 +00:00
2010-09-26 01:45:33 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-12-19 09:18:14 +00:00
2010-01-02 11:07:44 +00:00
2010-10-08 20:17:17 +00:00
2010-02-16 21:47:05 +00:00
2010-01-02 11:07:44 +00:00
2010-08-01 09:37:36 +00:00
2010-01-02 11:07:44 +00:00
2010-03-20 11:05:11 +00:00
2010-11-06 15:04:48 +00:00
2010-12-09 11:37:40 +00:00
2010-09-13 02:21:07 +00:00
2010-09-13 02:21:07 +00:00
2010-09-13 02:21:07 +00:00
2010-01-02 11:07:44 +00:00
2011-01-07 20:26:33 +00:00
2010-09-13 02:21:07 +00:00
2010-09-13 02:21:07 +00:00