[bug report] cal command segmentation fault

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

 



Hi,

I found a bug in the cal command. It is a segmentation fault for the
following input.

cal -d 20210516
Segmentation fault: 11

The segmentation fault happens with exactly 8 digits. However, there
is something going wrong with more digits as well. With 9 or more
digits, the command's output gets weird.

I checked the bug in three systems (Debian 10, OS X, and Ubuntu Server 16.04).

Linux NAME 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08)
x86_64 GNU/Linux

Darwin NAME 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05
PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64

Linux NAME 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC
2018 x86_64 x86_64 x86_64 GNU/Linux

Unfortunately, I don't have the time to go through the code and
provide a detailed fix for the issue. However, I assume it should be
fairly straightforward for the maintainers to find and fix this bug.

Best regards,

Diego



[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