ncal has stack smashing with long month names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bsdmainutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bsdmainutils
shs_CA has long month names and then when cal YYYY is run there is stack smashing.
I fixed the behaviour and attached is a patch, so now it doesn't crash, but it truncates the long month names.
I don't know how to fix it any better or how many locales this would affect.
http://
*** stack smashing detected ***: cal terminated
======= Backtrace: =========
/lib/tls/
/lib/tls/
cal[0x8049c5d]
[0x8040020]
======= Memory map: ========
08048000-0804c000 r-xp 00000000 08:04 839139 /usr/bin/ncal
0804c000-0804d000 rw-p 00004000 08:04 839139 /usr/bin/ncal
093a9000-093ca000 rw-p 093a9000 00:00 0 [heap]
b7dd6000-b7de3000 r-xp 00000000 08:04 254907 /lib/libgcc_s.so.1
b7de3000-b7de4000 r--p 0000c000 08:04 254907 /lib/libgcc_s.so.1
b7de4000-b7de5000 rw-p 0000d000 08:04 254907 /lib/libgcc_s.so.1
b7df4000-b7df5000 rw-p b7df4000 00:00 0
b7df5000-b7e34000 r--p 00000000 08:04 858482 /usr/lib/
b7e34000-b7e35000 r--p 00000000 08:04 858483 /usr/lib/
b7e35000-b7e36000 r--p 00000000 08:04 1129619 /usr/lib/
b7e36000-b7f17000 r--p 00000000 08:04 859858 /usr/lib/
b7f17000-b7f18000 rw-p b7f17000 00:00 0
b7f18000-b8070000 r-xp 00000000 08:04 253479 /lib/tls/
b8070000-b8072000 r--p 00158000 08:04 253479 /lib/tls/
b8072000-b8073000 rw-p 0015a000 08:04 253479 /lib/tls/
b8073000-b8076000 rw-p b8073000 00:00 0
b8076000-b8077000 r--p 00000000 08:04 858486 /usr/lib/
b8077000-b8078000 r--p 00000000 08:04 858488 /usr/lib/
b8078000-b8079000 r--p 00000000 08:04 858489 /usr/lib/
b8079000-b807a000 r--p 00000000 08:04 858490 /usr/lib/
b807a000-b807b000 r--p 00000000 08:04 1129620 /usr/lib/
b807b000-b807c000 r--p 0000000Aborted
Changed in bsdmainutils (Ubuntu): | |
status: | Confirmed → Fix Released |
Should be fixed in all 8* versions, could you re-try?