Alan Somers
9ad1d357e0
fix integer underflow in getgrnam_r and getpwnam_r
...
Sometimes nscd(8) will return a 1-byte buffer for a nonexistent entry. This
triggered an integer underflow in grp_unmarshal_func, causing getgrnam_r to
return ERANGE instead of 0.
Fix the user's buffer size check, and add a correct check for a too-small
nscd buffer.
PR: 248932
Event: September 2020 Bugathon
Reviewed by: markj
MFC after: 2 weeks
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D26204
2020-09-19 19:08:27 +00:00
..
2017-11-25 17:12:48 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2019-06-23 10:50:26 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-04-13 08:42:13 +00:00
2018-08-19 17:40:50 +00:00
2020-04-13 08:42:13 +00:00
2020-04-13 08:42:13 +00:00
2020-08-25 13:23:31 +00:00
2018-07-03 17:31:45 +00:00
2019-11-17 14:11:08 +00:00
2020-04-15 20:26:41 +00:00
2017-12-08 22:06:18 +00:00
2017-05-23 06:53:31 +00:00
2020-06-16 16:48:52 +00:00
2020-06-16 16:48:52 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2017-11-25 17:12:48 +00:00
2019-08-01 18:51:06 +00:00
2018-07-03 17:31:45 +00:00
2017-05-23 09:29:05 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-08-04 08:46:28 +00:00
2017-11-25 17:12:48 +00:00
2017-05-23 06:56:57 +00:00
2018-07-03 17:31:45 +00:00
2020-08-20 15:19:09 +00:00
2020-05-22 17:52:09 +00:00
2020-05-15 11:58:01 +00:00
2017-11-25 17:12:48 +00:00
2020-09-02 20:43:08 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2019-01-17 06:35:45 +00:00
2017-11-25 17:12:48 +00:00
2020-03-24 19:33:21 +00:00
2020-06-10 01:32:13 +00:00
2018-04-12 18:23:14 +00:00
2017-11-25 17:12:48 +00:00
2017-11-20 19:49:47 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2017-11-25 17:12:48 +00:00
2018-07-03 17:31:45 +00:00
2018-08-07 15:24:19 +00:00
2019-03-26 19:35:41 +00:00
2017-05-23 09:29:05 +00:00
2019-03-26 19:35:41 +00:00
2017-11-20 19:49:47 +00:00
2017-02-28 23:42:47 +00:00
2019-03-26 19:35:41 +00:00
2018-07-03 17:31:45 +00:00
2020-03-12 18:28:23 +00:00
2017-05-23 09:29:05 +00:00
2019-06-30 11:49:58 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-06-12 00:43:14 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-03-23 17:38:20 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-03-21 01:15:45 +00:00
2018-10-20 21:45:17 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2020-09-19 19:08:27 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-07-13 15:17:29 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-09-09 18:07:13 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-06-13 18:34:49 +00:00
2018-07-03 17:31:45 +00:00
2017-04-26 14:28:27 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2020-08-03 22:13:02 +00:00
2017-02-28 23:42:47 +00:00
2020-09-19 19:08:27 +00:00
2018-02-27 10:55:33 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2018-08-16 18:40:16 +00:00
2019-07-17 19:41:44 +00:00
2018-07-03 17:31:45 +00:00
2017-05-23 09:29:05 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-12-31 00:46:41 +00:00
2017-11-25 17:12:48 +00:00
2019-11-02 16:59:53 +00:00
2017-02-28 23:42:47 +00:00
2019-06-23 10:45:50 +00:00
2017-11-25 17:12:48 +00:00
2020-03-23 17:38:20 +00:00
2020-08-10 21:41:49 +00:00
2020-05-14 21:12:08 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-03-30 20:15:19 +00:00
2020-03-30 21:25:00 +00:00
2020-01-29 01:52:27 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-02-27 04:41:14 +00:00
2020-06-12 18:13:32 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2018-07-26 18:34:38 +00:00
2018-07-26 18:34:38 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2019-02-13 04:52:01 +00:00
2018-07-03 17:31:45 +00:00
2020-08-17 19:14:09 +00:00
2017-02-28 23:42:47 +00:00
2020-08-31 21:55:25 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2017-05-24 17:50:34 +00:00
2017-11-25 17:12:48 +00:00
2018-03-02 22:32:53 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2019-07-18 21:33:55 +00:00
2020-08-03 18:08:04 +00:00
2018-07-04 13:31:16 +00:00
2020-04-15 20:28:20 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-12-01 22:48:20 +00:00
2018-07-03 17:31:45 +00:00
2019-12-12 01:41:55 +00:00
2019-12-12 01:41:55 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-09-09 18:07:13 +00:00
2017-02-28 23:42:47 +00:00
2018-11-19 18:23:17 +00:00
2020-04-12 14:30:00 +00:00
2018-07-03 17:31:45 +00:00
2019-12-29 17:19:57 +00:00
2019-09-18 16:13:10 +00:00
2018-12-06 18:03:18 +00:00
2020-08-14 00:18:18 +00:00
2017-02-28 23:42:47 +00:00
2017-05-23 06:58:08 +00:00
2020-07-15 17:05:37 +00:00
2017-02-28 23:42:47 +00:00
2019-06-23 10:47:07 +00:00
2017-12-06 22:06:48 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-08-10 15:16:41 +00:00
2018-08-10 15:16:36 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2020-02-26 18:55:09 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2020-01-21 16:31:08 +00:00
2020-03-23 17:38:20 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2017-11-25 17:12:48 +00:00
2017-02-28 23:42:47 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00
2018-07-03 17:31:45 +00:00
2017-11-25 17:12:48 +00:00