• Stephan Bergmann's avatar
    external/libcdr: Avoid UB converting from double to int via unsigned · 4c707b78
    Stephan Bergmann yazdı
    Opening cdr/fdo53278-4.cdr as obtained by
    bin/get-bugzilla-attachments-by-mimetype (i.e., the attachment at
    <https://bugs.documentfoundation.org/show_bug.cgi?id=53278#c14>) under
    -fsanitize=undefined causes
    
    > CDRPath.cpp:821:34: runtime error: -173.908 is outside the range of representable values of type 'unsigned int'
    >  #0 in libcdr::CDRPath::writeOut(librevenge::RVNGString&, librevenge::RVNGString&, double&) const at workdir/UnpackedTarball/libcdr/src/lib/CDRPath.cpp:821:34 (instdir/program/../program/libwpftdrawlo.so +0x2380015)
    >  #1 in libcdr::CDRContentCollector::_lineProperties(librevenge::RVNGPropertyList&) at workdir/UnpackedTarball/libcdr/src/lib/CDRContentCollector.cpp:1118:17 (instdir/program/../program/libwpftdrawlo.so +0x2090b54)
    >  #2 in libcdr::CDRContentCollector::_flushCurrentPath() at workdir/UnpackedTarball/libcdr/src/lib/CDRContentCollector.cpp:240:5 (instdir/program/../program/libwpftdrawlo.so +0x2070a9e)
    >  #3 in libcdr::CDRContentCollector::collectLevel(unsigned int) at workdir/UnpackedTarball/libcdr/src/lib/CDRContentCollector.cpp:563:5 (instdir/program/../program/libwpftdrawlo.so +0x209243d)
    >  #4 in libcdr::CDRParser::parseRecord(librevenge::RVNGInputStream*, std::vector<unsigned int, std::allocator<unsigned int> > const&, unsigned int) at workdir/UnpackedTarball/libcdr/src/lib/CDRParser.cpp:514:18 (instdir/program/../program/libwpftdrawlo.so +0x213bdff)
    >  #5 in libcdr::CDRParser::parseRecords(librevenge::RVNGInputStream*, std::vector<unsigned int, std::allocator<unsigned int> > const&, unsigned int) at workdir/UnpackedTarball/libcdr/src/lib/CDRParser.cpp:500:10 (instdir/program/../program/libwpftdrawlo.so +0x213b93f)
    [...]
    
    Change-Id: Ie73965851102689ebb7895d61edb3d32ff47c60c
    Reviewed-on: https://gerrit.libreoffice.org/73181
    Tested-by: Jenkins
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    4c707b78
Adı
Son kayıt (commit)
Son güncelleme
..
apache-commons Loading commit data...
apr Loading commit data...
beanshell Loading commit data...
bluez_bluetooth Loading commit data...
boost Loading commit data...
breakpad Loading commit data...
bzip2 Loading commit data...
cairo Loading commit data...
clew Loading commit data...
clucene Loading commit data...
coinmp Loading commit data...
cppunit Loading commit data...
ct2n Loading commit data...
curl Loading commit data...
epm Loading commit data...
epoxy Loading commit data...
expat Loading commit data...
firebird Loading commit data...
fontconfig Loading commit data...
freetype Loading commit data...
glm Loading commit data...
gpgmepp Loading commit data...
graphite Loading commit data...
harfbuzz Loading commit data...
hsqldb Loading commit data...
hunspell Loading commit data...
hyphen Loading commit data...
icu Loading commit data...
jfreereport Loading commit data...
languagetool Loading commit data...
lcms2 Loading commit data...
libabw Loading commit data...
libassuan Loading commit data...
libatomic_ops Loading commit data...
libcdr Loading commit data...
libcmis Loading commit data...
libebook Loading commit data...
libeot Loading commit data...
libepubgen Loading commit data...
libetonyek Loading commit data...
libexttextcat Loading commit data...
libfreehand Loading commit data...
libgpg-error Loading commit data...
libjpeg-turbo Loading commit data...
liblangtag Loading commit data...
libmspub Loading commit data...
libmwaw Loading commit data...
libnumbertext Loading commit data...
libodfgen Loading commit data...
liborcus Loading commit data...
libpagemaker Loading commit data...
libpng Loading commit data...
libqxp Loading commit data...
librevenge Loading commit data...
libstaroffice Loading commit data...
libtommath Loading commit data...
libvisio Loading commit data...
libwpd Loading commit data...
libwpg Loading commit data...
libwps Loading commit data...
libxml2 Loading commit data...
libxslt Loading commit data...
libzmf Loading commit data...
lpsolve Loading commit data...
lxml Loading commit data...
mariadb-connector-c Loading commit data...
mdds Loading commit data...
mdnsresponder Loading commit data...
misc_extensions Loading commit data...
more_fonts Loading commit data...
msc-externals Loading commit data...
mythes Loading commit data...
neon Loading commit data...
nss Loading commit data...
openldap Loading commit data...
openssl Loading commit data...
owncloud-android-lib Loading commit data...
pdfium Loading commit data...
poppler Loading commit data...
postgresql Loading commit data...
python3 Loading commit data...
redland Loading commit data...
rhino Loading commit data...
sane Loading commit data...
serf Loading commit data...
twain_dsm Loading commit data...
ucpp Loading commit data...
unixODBC Loading commit data...
xmlsec Loading commit data...
xsltml Loading commit data...
zlib Loading commit data...
Makefile Loading commit data...
Module_external.mk Loading commit data...
README Loading commit data...