Re: [PATCH 02/10] cal: fix signed integer overflow [AddressSanitizer]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 30, 2014 at 01:57:34PM +0000, Sami Kerola wrote:
>   November 2147483646   December 2147483646   January 2147483647 
>  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa
> - 1  2  3  4  5  6  7   1  2  3  4  5  6  7   1  2  3  4  5  6  7 
> - 8  9 10 11 12 13 14   8  9 10 11 12 13 14   8  9 10 11 12 13 14 
> -15 16 17 18 19 20 21  15 16 17 18 19 20 21  15 16 17 18 19 20 21 
> -22 23 24 25 26 27 28  22 23 24 25 26 27 28  22 23 24 25 26 27 28 
> -29 30                 29 30 31              29 30 31

All months start at Sunday? Nice. 

It means that we had regression tests, but nobody reviewed that
the output from cal(1) in the tests makes any sense :-((((

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux