[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#766329: gcc-4.4: Incorrectly escape sequences in a string with \xnn



Package: gcc-4.4
Version: 4.4.5-8
Severity: normal

If I compile and run  the next program

#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv)
{
	printf ("\x65gg\n");
}
It's print correctly egg

But if I try to compile the next program:
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char **argv)
{
	printf ("\x65aa\n");
}

The compiler shows the next warning
test.c:5:10: warning: hex escape sequence out of range

And the executable generated prints:
?
Ã

-- System Information:
Debian Release: 6.0.10
  APT prefers squeeze-lts
  APT policy: (500, 'squeeze-lts'), (500, 'oldstable')
Architecture: amd64 (x86_64)

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

Versions of packages gcc-4.4 depends on:
ii  binutils                 2.20.1-16       The GNU assembler, linker and bina
ii  cpp-4.4                  4.4.5-8         The GNU C preprocessor
ii  gcc-4.4-base             4.4.5-8         The GNU Compiler Collection (base 
ii  libc6                    2.11.3-4+deb6u1 Embedded GNU C Library: Shared lib
ii  libgcc1                  1:4.4.5-8       GCC support library
ii  libgomp1                 4.4.5-8         GCC OpenMP (GOMP) support library

Versions of packages gcc-4.4 recommends:
ii  libc6-dev                2.11.3-4+deb6u1 Embedded GNU C Library: Developmen

Versions of packages gcc-4.4 suggests:
pn  gcc-4.4-doc                   <none>     (no description available)
pn  gcc-4.4-locales               <none>     (no description available)
pn  gcc-4.4-multilib              <none>     (no description available)
pn  libcloog-ppl0                 <none>     (no description available)
pn  libgcc1-dbg                   <none>     (no description available)
pn  libgomp1-dbg                  <none>     (no description available)
pn  libmudflap0-4.4-dev           <none>     (no description available)
pn  libmudflap0-dbg               <none>     (no description available)
pn  libppl-c2                     <none>     (no description available)
pn  libppl7                       <none>     (no description available)

-- no debconf information

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Reply to: