Alexander Motin 36289c3336 Add checks for received mode page length.
If our buffer is too small, we may receive part of the page, and should
not try read/write past the end of the buffer.

Reported by:	Coverity
CID:		1368374, 1368375
MFC after:	1 week
2017-01-10 20:52:44 +00:00
..
2016-10-05 19:49:48 +00:00
2016-10-05 20:01:09 +00:00
2016-12-13 18:15:11 +00:00
2016-12-01 04:35:38 +00:00
2016-10-05 20:08:07 +00:00
2017-01-04 18:13:05 +00:00
2016-10-02 23:26:41 +00:00
2016-10-02 23:30:28 +00:00
2016-05-02 01:40:31 +00:00
2016-10-05 20:31:44 +00:00
2016-10-02 23:48:33 +00:00
MFH
2016-03-02 16:14:46 +00:00
2016-04-19 04:52:13 +00:00
2016-04-19 04:52:51 +00:00
MFH
2016-04-04 23:55:32 +00:00
2016-10-02 23:56:08 +00:00
2016-10-05 20:42:35 +00:00
2016-10-05 20:45:21 +00:00
2016-12-28 16:16:48 +00:00
2016-10-03 00:40:20 +00:00
2016-10-03 00:42:25 +00:00
2015-06-13 19:20:56 +00:00
2016-04-20 01:35:09 +00:00
2016-12-22 00:35:12 +00:00