Red Hat Bugzilla – Bug 167127
cal writes across stack boundary
Last modified: 2007-11-30 17:11:12 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6
Description of problem:
When libsafe from Fedora Extras is installed, any attempt at using cal from the util-linux package results in output like this:
$ cal 2005
Libsafe version 2.0.16c
Detected an attempt to write across stack boundary.
uid=500 euid=500 pid=23879
Overflow caused by wcscat()
Without libsafe installed, cal runs without complaint under both valgrind and Electric Fence.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install libsafe from Fedora Extras
2. Run cal with any arguments
Actual Results: A libsafe error is produced and cal is shut down without producing output.
Expected Results: Cal should have produced its requested output.
I haven't found anything wrong in the code. We use FORTIFY_SOURCE and
-fstack-protector -- it makes libsafe obsolete.