Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / neon / ubsan.patch
blob56445fcb7e1700d05921de7d8d284643a0e4b64f
1 --- src/ne_compress.c
2 +++ src/ne_compress.c
3 @@ -81,7 +81,7 @@
4 };
6 /* Convert 'buf' to unsigned int; 'buf' must be 'unsigned char *' */
7 -#define BUF2UINT(buf) (((buf)[3]<<24) + ((buf)[2]<<16) + ((buf)[1]<<8) + (buf)[0])
8 +#define BUF2UINT(buf) (((unsigned)((buf)[3])<<24) + ((buf)[2]<<16) + ((buf)[1]<<8) + (buf)[0])
10 #define ID1 0x1f
11 #define ID2 0x8b