From: | karl@××××××××.se |
---|---|
To: | gentoo-user@l.g.o |
Subject: | [gentoo-user] app-text/c2ps buffer overflow |
Date: | Fri, 26 Jul 2019 10:27:01 |
Message-Id: | 20190726102651.1E5128627C4D@turkos.aspodata.se |
1 | $ c2ps |
2 | *** buffer overflow detected ***: c2ps terminated |
3 | Aborted |
4 | |
5 | Downloading source from |
6 | http://www.cs.technion.ac.il/users/c2ps/c2ps-4.0.tar.gz |
7 | and compiling gives the same result: |
8 | |
9 | $ /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps -2 tap.c > zz.ps |
10 | *** buffer overflow detected ***: /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps terminated |
11 | Aborted |
12 | |
13 | Removeing -O in Makefile: |
14 | $ diff Makefile* |
15 | 6c6 |
16 | < CCFLAGS = |
17 | --- |
18 | > CCFLAGS = -O |
19 | |
20 | and recompiling solves the issue: |
21 | $ /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps -2 tap.c > zz.ps |
22 | tap.c 2 pages printed |
23 | |
24 | O2 doesn't work either. |
25 | |
26 | Perhaps this makes the error messages to appear: |
27 | $ grep STACKPROT /boot/config-4.11.12-rt16-1 |
28 | CONFIG_HAVE_CC_STACKPROTECTOR=y |
29 | CONFIG_CC_STACKPROTECTOR=y |
30 | # CONFIG_CC_STACKPROTECTOR_NONE is not set |
31 | CONFIG_CC_STACKPROTECTOR_REGULAR=y |
32 | # CONFIG_CC_STACKPROTECTOR_STRONG is not set |
33 | |
34 | Regards, |
35 | /Karl Hammar |
Subject | Author |
---|---|
Re: [gentoo-user] app-text/c2ps buffer overflow | Michael Orlitzky <mjo@g.o> |