file-5.00: $ file p007 p007: ERROR: CDF V2 Document, Little Endian, Os: Windows, Version 5.1, Code page: 1257vasprintf failed (Invalid or incomplete multibyte or wide character) file-4.26: $ file p007 p007: Microsoft Office Document Microsoft Word Document Reproducible: Always Steps to Reproduce: emerge --info Portage 2.1.6.7 (selinux/2007.0/amd64/hardened, gcc-4.1.2, glibc-2.9_p20081201-r1, 2.6.26-hardened-r4 x86_64) ================================================================= System uname: Linux-2.6.26-hardened-r4-x86_64-Intel-R-_Xeon-R-_CPU_5110_@_1.60GHz-with-glibc2.2.5 Timestamp of tree: Tue, 10 Feb 2009 13:15:01 +0000 app-shells/bash: 3.2_p48-r1 dev-lang/python: 2.4.4-r14, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.3.5 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.tups.lv/source http://ftp.linux.ee/pub/gentoo/distfiles" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://gentoo.tups.lv/gentoo-portage" USE="amd64 apache2 berkdb cli cracklib crypt cups dri fortran gdbm hardened iconv ipv6 isdnlog jfs jpeg logrotate midi mmx mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pic png pppd python readline reflection selinux session spl sse sse2 sse3 ssl syslog tcpd unicode urandom usb vhosts xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_default authn_file authz_default authz_host autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Hardened fail?
you need to post the actual files you're testing with as attachments
Confirm that. file -v file-4.23 magic file from /usr/share/misc/file/magic file Unicode.doc Unicode.doc: Microsoft Office Document file -v file-5.00 magic file from /usr/share/misc/file/magic file Unicode.doc Unicode.doc: ERROR: CDF V2 Document, Little Endian, Os: Windows, Version 5.2, Code page: 1251, Title: , Subject: vasprintf failed (Invalid or incomplete multibyte or wide character)
Created attachment 181608 [details] test-file
Created attachment 181609 [details] emerge --info
~x86 is also affected. default/linux/x86/2008.0/desktop $ export LC_ALL=en_US.UTF-8 $ file Unicode.doc Unicode.doc: ERROR: CDF V2 Document, Little Endian, Os: Windows, Version 5.2, Code page: 1251, Title: , Subject: vasprintf failed (Invalid or incomplete multibyte or wide character) $ export LC_ALL=en_US $ file Unicode.doc Unicode.doc: CDF V2 Document, Little Endian, Os: Windows, Version 5.2, Code page: 1251, Title: , Subject: , Author: ������ �������, Keywords: , Template: Normal.dot, Last Saved By: ������ �������, Revision Number: 2, Name of Creating Application: Microsoft Office Word, Total Editing Time: 01:00, Create Time/Date: Tue Feb 10 06:40:00 2009, Last Saved Time/Date: Tue Feb 10 06:41:00 2009, Number of Pages: 1, Number of Words: 7, Number of Characters: 43, Security: 0 $ file -v file-5.00 magic file from /usr/share/misc/file/magic
ive applied a fix from upstream to file-5.00-r1 ... thanks for the report !