summaryrefslogtreecommitdiff
path: root/external/pdfium/ubsan.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/pdfium/ubsan.patch')
-rw-r--r--external/pdfium/ubsan.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/external/pdfium/ubsan.patch b/external/pdfium/ubsan.patch
index 4349e860bd37..90ff0c851b97 100644
--- a/external/pdfium/ubsan.patch
+++ b/external/pdfium/ubsan.patch
@@ -1,3 +1,14 @@
+--- core/fxcodec/lbmp/fx_bmp.h
++++ core/fxcodec/lbmp/fx_bmp.h
+@@ -132,7 +132,7 @@
+ class CBmpContext : public CCodec_BmpModule::Context {
+ public:
+ CBmpContext(CCodec_BmpModule* pModule, CCodec_BmpModule::Delegate* pDelegate);
+- ~CBmpContext() override;
++ ~CBmpContext() override {}
+
+ BMPDecompressor m_Bmp;
+ CFX_UnownedPtr<CCodec_BmpModule> const m_pModule;
--- core/fxge/ge/cfx_facecache.cpp
+++ core/fxge/ge/cfx_facecache.cpp
@@ -206,7 +206,8 @@ CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph(const CFX_Font* pFont,