Your message dated Sun, 6 Feb 2011 12:50:32 -0700
with message-id <[email protected]>
and subject line Re: Bug#603860: unifdef: /* in string is taken as comment start
has caused the Debian Bug report #603860,
regarding unifdef: /* in string is taken as comment start
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
603860: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603860
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: unifdef
Version: 1.0+20030701-1
Severity: important


Running "unifdef -UBARF" over the file:

    char foo[] = "rm -rf /*";

causes a warning that the file ends within a comment.  That's not so
bad.  However, since the text following up to the next "*/" will be
considered to be in a comment, it won't go through proper unifdef
processing:

    $ cat unifdef-test.c 
    #ifdef FOO
    int a;
    #endif
    char foo[] = "rm -rf /*";
    #ifdef FOO
    int b;
    #endif
    /* baz */
    $ unifdef -UFOO < unifdef-test.c 
    char foo[] = "rm -rf /*";
    #ifdef FOO
    int b;
    #endif
    /* baz */
    $ 

Workarounds:

Immediately follow any such string literals with /* */ comments.

Use "\" before the "*", though that generates a warning from gcc about
an unknown escape sequence.

Construct the string literal from two, e.g.:

    char foo[] = "rm -rf /" "*";

-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (1001, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages unifdef depends on:
ii  libc6                       2.7-18lenny4 GNU C Library: Shared libraries

unifdef recommends no packages.

unifdef suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Bob Proulx wrote:
> Ken Raeburn wrote:
> > char foo[] = "rm -rf /*";

Thank you for your bug report that I am closing with this message.
Squeeze is released as Stable!  This bug no longer exists in Stable
and is now closed.

Thank you for helping to improve Debian!

Bob

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to