NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/47068: unifdef(1) with cpp directive on last line without newline
>Number: 47068
>Category: bin
>Synopsis: unifdef(1) with cpp directive on last line without newline
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 13 16:50:01 +0000 2012
>Originator: Nicolas Joly
>Release: NetBSD 6.99.12
>Organization:
Institut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 6.99.12 NetBSD 6.99.12 (LANFEUST) #7:
Sat Oct 13 10:03:30 CEST 2012
njoly%lanfeust.sis.pasteur.fr@localhost:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST
amd64
Architecture: x86_64
Machine: amd64
>Description:
unifdef(1) crash when a source file has a cpp directive on the last line but
miss a newline.
>How-To-Repeat:
njoly@lanfeust [~]> printf '#ifdef foo\n#endif' >input
njoly@lanfeust [~]> unifdef -Ubar input
#ifdef foo
zsh: abort (core dumped) unifdef -Ubar input
njoly@lanfeust [~]> printf '#ifdef foo\n#endif\n' >input
njoly@lanfeust [~]> unifdef -Ubar input
#ifdef foo
#endif
>Fix:
Home |
Main Index |
Thread Index |
Old Index