Kaydet (Commit) 7340bec4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/libmspub: Work around -fsanitize=enum

Change-Id: Icf1d45b1cd171e868a15f841258c5368a0b213e1
üst fcfa3990
......@@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,libmspub))
$(eval $(call gb_UnpackedTarball_set_tarball,libmspub,$(MSPUB_TARBALL)))
$(eval $(call gb_UnpackedTarball_set_patchlevel,libmspub,0))
$(eval $(call gb_UnpackedTarball_add_patches,libmspub,\
external/libmspub/ubsan.patch \
))
# vim: set noet sw=4 ts=4:
--- src/lib/MSPUBContentChunkType.h
+++ src/lib/MSPUBContentChunkType.h
@@ -27,7 +27,8 @@
CELLS = 0x63,
FONT = 0x6C,
IMAGE_2K, //these don't exist in Pub 2k3 so their value in the enum is not used.
- IMAGE_2K_DATA
+ IMAGE_2K_DATA,
+ MSPUBContentChunkType_dummy=0xFF // MSPUBParser.cpp:2359:9: runtime error: load of value 138, which is not a valid value for type 'libmspub::MSPUBContentChunkType'
};
} // namespace libmspub
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment