public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] app-text/c2ps buffer overflow
@ 2019-07-26 10:26 karl
  2019-07-26 12:41 ` Michael Orlitzky
  0 siblings, 1 reply; 2+ messages in thread
From: karl @ 2019-07-26 10:26 UTC (permalink / raw
  To: gentoo-user

$ c2ps 
*** buffer overflow detected ***: c2ps terminated
Aborted

 Downloading source from
  http://www.cs.technion.ac.il/users/c2ps/c2ps-4.0.tar.gz
 and compiling gives the same result:

$ /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps -2 tap.c  > zz.ps
*** buffer overflow detected ***: /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps terminated
Aborted

 Removeing -O in Makefile:
$ diff Makefile*
6c6
< CCFLAGS =       
---
> CCFLAGS =       -O

 and recompiling solves the issue:
$ /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps -2 tap.c  > zz.ps
tap.c                        2 pages printed                           

 O2 doesn't work either.

 Perhaps this makes the error messages to appear:
$ grep STACKPROT /boot/config-4.11.12-rt16-1 
CONFIG_HAVE_CC_STACKPROTECTOR=y
CONFIG_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR_NONE is not set
CONFIG_CC_STACKPROTECTOR_REGULAR=y
# CONFIG_CC_STACKPROTECTOR_STRONG is not set

Regards,
/Karl Hammar



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] app-text/c2ps buffer overflow
  2019-07-26 10:26 [gentoo-user] app-text/c2ps buffer overflow karl
@ 2019-07-26 12:41 ` Michael Orlitzky
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Orlitzky @ 2019-07-26 12:41 UTC (permalink / raw
  To: gentoo-user

On 7/26/19 6:26 AM, karl@aspodata.se wrote:
> 
>  Downloading source from
>   http://www.cs.technion.ac.il/users/c2ps/c2ps-4.0.tar.gz
>  and compiling gives the same result:
> 
> $ /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps -2 tap.c  > zz.ps
> *** buffer overflow detected ***: /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps terminated
> Aborted

Probably an upstream bug, but that release is the latest one, and it's
from 1997. You could try emailing the authors Dmitri Shtilman
<dash@vision10.technion.ac.il> and Dmitri Makarov <dimm@vnet.ibm.com>
whose email addresses I found in the FreeBSD port, but I wouldn't get my
hopes up if I were you.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-26 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-26 10:26 [gentoo-user] app-text/c2ps buffer overflow karl
2019-07-26 12:41 ` Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox