Bug 145897 - app-text/a2ps-4.13-r2 segfaults on amd64
Bug#: 145897 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cjk@gentoo.org Reported By: kevquinn@gentoo.org
Component: Printing
URL: 
Summary: app-text/a2ps-4.13-r2 segfaults on amd64
Keywords:  
Status Whiteboard: 
Opened: 2006-09-01 13:25 0000
Description:   Opened: 2006-09-01 13:25 0000
This shows up if the tests are run; the test that fails just does:

$ a2ps --list=options

which segfaults because the code is copying a va_list with memcpy, which is not
valid.

It'll fail on any platform for which va_list is a 1-element array of a
structure (see stdarg(3) for details).

Patch to follow.

------- Comment #1 From Kevin F. Quinn (RETIRED) 2006-09-01 13:27:12 0000 -------
Created an attachment (id=95671) [details]
Replace incorrect use of memcpy with va_copy().

------- Comment #2 From Kevin F. Quinn (RETIRED) 2006-09-01 13:28:36 0000 -------
Huh - fix is already in for later versions - oh well, I learned something even
if it wasn't necessary to do anything!