Bug#827160: jessie-pu: package dosfstools/3.0.27-1+deb8u1
On Sat, 2016-06-18 at 09:21 +0200, Petter Reinholdtsen wrote:
> [Andreas Bombe]
> diff --git a/src/check.c b/src/check.c
> index e8aaf92..086b923 100644
> --- a/src/check.c
> +++ b/src/check.c
> @@ -29,6 +29,7 @@
> #include <string.h>
> #include <limits.h>
> #include <time.h>
> +#include <assert.h>
>
> #include "common.h"
> #include "fsck.fat.h"
> @@ -236,6 +237,7 @@ static time_t date_dos2unix(unsigned short time, unsigned short date)
> time_t secs;
>
> month = ((date >> 5) & 15) - 1;
> + assert(month >= 0);
The version in unstable has:
if (month < 0) {
/* make sure that nothing bad happens if the month bits were zero */
month = 0;
}
which seems like a more minimal-style change than the assert. Could we
have an updated debdiff including that change, please?
Regards,
Adam
Reply to: