office-gobmx/external/libmspub/ubsan.patch
Stephan Bergmann 7340bec472 external/libmspub: Work around -fsanitize=enum
Change-Id: Icf1d45b1cd171e868a15f841258c5368a0b213e1
2015-01-13 11:13:40 +01:00

12 lines
451 B
Diff

--- 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