]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cal: make sure day_in_week() does not overrun array size [coverity scan]
authorKarel Zak <kzak@redhat.com>
Thu, 11 Jul 2024 12:15:44 +0000 (14:15 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 11 Jul 2024 12:15:44 +0000 (14:15 +0200)
commit54ff6aff58a59ad50a77483786b209da25e1ed73
tree6e2ab46c9ab11d913505f7b587b11edf2baa72fe
parent6fc5b5af4bfea4e3115cddb2c1716b3120bb3d4f
cal: make sure day_in_week() does not overrun array size [coverity scan]

It's very theoretical, but protect against this possibility.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c