Package: ccal
Version: 4.0-4
Severity: normal
Tags: patch
X-Debbugs-Cc: l...@noreply.nowhere.com

Dear Maintainer,

found a bug when trying to use the --continue flag
caused by ccal not properly setting it as an option
expecting a value


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

Kernel: Linux 5.10.0-21-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 ccal depends on:
ii  dpkg   1.20.12
ii  libc6  2.33-8

ccal recommends no packages.

ccal suggests no packages.

-- no debconf information
Description: option expecting argument but won't check if absent
The command line option '--continue' expects an argument, but 
the table opt[] which contains the information on whether options
expect arguments is wrong, therefore running the program as:
'$ ccal --continue '
causes unexpected behaviour. (SEGFAULT at least when i tested it)
Author: Grob Grobmann
Last-Update: 2023-02-24 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/cal.c
+++ b/src/cal.c
@@ -327,7 +327,7 @@
     { "thismonth",  0 },
     { "today",      0 },
     { "year",       0 },
-    { "continue",   0 },
+    { "continue",   1 },
     { "american",   0 },
 #ifdef USE_COLOR
     { "use-color",  0 },

Reply via email to