commit | 564277eceeca01e02b1ef3e141cfb939184601b4 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon May 01 21:43:43 2017 +0300 |
committer | Steve French <smfrench@gmail.com> | Tue May 02 14:57:34 2017 -0500 |
tree | 57e17aa79a915acfe21d8e428c9be0c28df84c9e | |
parent | 204f144c9fcac355843412b6ba1150086488a208 [diff] |
cifs: small underflow in cnvrtDosUnixTm() January is month 1. There is no zero-th month. If someone passes a zero month then it means we read from one space before the start of the total_days_of_prev_months[] array. We may as well also be strict about days as well. Fixes: 1bd5bbcb6531 ("[CIFS] Legacy time handling for Win9x and OS/2 part 1") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Steve French <smfrench@gmail.com>