From: Dan Carpenter Date: Mon, 1 May 2017 18:43:43 +0000 (+0300) Subject: cifs: small underflow in cnvrtDosUnixTm() X-Git-Tag: v3.2.92~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67a70eac6d81ee5a7473e11cae464c89783af725;p=pandora-kernel.git cifs: small underflow in cnvrtDosUnixTm() commit 564277eceeca01e02b1ef3e141cfb939184601b4 upstream. 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 Signed-off-by: Steve French [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed