https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80282

            Bug ID: 80282
           Summary: undefined behavior in ios_base.h
           Product: gcc
           Version: 4.9.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ago at gentoo dot org
  Target Milestone: ---

Hello All.

During the fuzz of podofo I hit this warning:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/ios_base.h:96:24:
runtime error: load of value 4294967035, which is not a valid value for type
'std::_Ios_Fmtflags'

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/ios_base.h:76:67:
runtime error: load of value 4294967035, which is not a valid value for type
'std::_Ios_Fmtflags'

Now, since the podofo maintainers are a bit unresponsive, I don't know at all
if the bug resides in gcc or not.
However, podofo was compiled with clang.

Details:
- the exact version of GCC;
gcc version 4.9.4 (Gentoo 4.9.4 p1.0, pie-0.6.4)

-the system type;
Gentoo x86_64

-the options given when GCC was configured/built;
Configured with: /tmp/portage/sys-devel/gcc-4.9.4/work/gcc-4.9.4/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.4
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.4
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.4/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.4/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.4/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--enable-checking=release --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 4.9.4 p1.0, pie-0.6.4' --enable-libstdcxx-time
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64
--disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj
--enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts
--enable-vtable-verify --enable-libvtv --enable-lto --without-cloog
--enable-libsanitizer

-the complete command line that triggers the bug;
podofoimpose $CRAFTED_PDF output.pdf /tmp/plan

Reply via email to