All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] cal command segmentation fault
@ 2021-02-15 15:28 Diego Kreutz
  2021-02-15 15:48 ` Anatoly Pugachev
  2021-02-15 15:55 ` Sami Kerola
  0 siblings, 2 replies; 4+ messages in thread
From: Diego Kreutz @ 2021-02-15 15:28 UTC (permalink / raw)
  To: util-linux

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-15 16:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 15:28 [bug report] cal command segmentation fault Diego Kreutz
2021-02-15 15:48 ` Anatoly Pugachev
2021-02-15 15:56   ` Diego Kreutz
2021-02-15 15:55 ` Sami Kerola

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.