Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
30590f00
Kaydet (Commit)
30590f00
authored
May 16, 2012
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Let VSD typedetection not throw
Change-Id: Ifdb4cff2e2cbc05b694db31fcaf381186ec1b830
üst
60618628
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
libvisio-0.0.16-nothrow.patch
libvisio/libvisio-0.0.16-nothrow.patch
+31
-0
makefile.mk
libvisio/makefile.mk
+1
-0
No files found.
libvisio/libvisio-0.0.16-nothrow.patch
0 → 100644
Dosyayı görüntüle @
30590f00
--- misc/libvisio-0.0.16/src/lib/VisioDocument.cpp 2012-04-13 10:54:19.000000000 +0200
+++ misc/build/libvisio-0.0.16/src/lib/VisioDocument.cpp 2012-05-16 15:16:08.974375389 +0200
@@ -45,10 +45,13 @@
*/
bool libvisio::VisioDocument::isSupported(WPXInputStream *input)
{
+ WPXInputStream *tmpDocStream = 0;
+ try
+ {
input->seek(0, WPX_SEEK_SET);
if (!input->isOLEStream())
return false;
- WPXInputStream *tmpDocStream = input->getDocumentOLEStream("VisioDocument");
+ tmpDocStream = input->getDocumentOLEStream("VisioDocument");
if (!tmpDocStream)
return false;
@@ -64,6 +67,13 @@
{
return true;
}
+ }
+ catch (...)
+ {
+ if (tmpDocStream)
+ delete tmpDocStream;
+ return false;
+ }
return false;
}
libvisio/makefile.mk
Dosyayı görüntüle @
30590f00
...
@@ -58,6 +58,7 @@ TARFILE_NAME=libvisio-0.0.16
...
@@ -58,6 +58,7 @@ TARFILE_NAME=libvisio-0.0.16
TARFILE_MD5
=
2fa6028324347860e684e75310818d43
TARFILE_MD5
=
2fa6028324347860e684e75310818d43
PATCH_FILES
=
\
PATCH_FILES
=
\
$(TARFILE_NAME)
-nothrow
.patch
\
$(TARFILE_NAME)
.patch
$(TARFILE_NAME)
.patch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment