Package: hodie
Version: 1.5.0-2
Severity: normal

Dear Maintainer,


When printing verbose dates, if the resulting string is too long the
program crashes with

"*** stack smashing detected ***: terminated
Aborted", even though it prints the date.


For example, this works correctly:

# /usr/bin/hodie -vvcad -d ymd 2023-12-14
Hodie postridie Idus Decembres bis millesimis septingentesimis septuagesimis 
sextis ab urbe condita est

This fails:

# /usr/bin/hodie -vvcad -d ymd 2023-12-15
Hodie ante diem duodevicesimum Kalendas Ianuarias bis millesimis 
septingentesimis septuagesimis septimis ab urbe condita est
*** stack smashing detected ***: terminated
Aborted

Reducing verbosity makes the fault go away:

# /usr/bin/hodie -vcad -d ymd 2023-12-15
Hodie ante diem duodevicesimum Kalendas Ianuarias MMDCCLXXVII ab urbe condita 
est

bug also exists in bullseye (11.5), I don't have older versions at
hand to test.

It may be as simple as making "verbose" string longer in hodie.c line 9

Pf

-- System Information:
Debian Release: 12.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-14-amd64 (SMP w/128 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hodie depends on:
ii  libc6  2.36-9+deb12u3

hodie recommends no packages.

hodie suggests no packages.

-- no debconf information


-- 
Pierfrancesco Caci, ik5pvx

Reply via email to