Kaydet (Commit) 9ec9ef47 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/neon: -fsanitize=shift

Change-Id: I82255efc3a4fbcb07b6f747af6ef81124a5fb96f
üst 5ccc46b0
......@@ -21,6 +21,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,neon,\
external/neon/neon.patch \
external/neon/neon_ne_set_request_flag.patch \
external/neon/neon_with_gnutls.patch \
external/neon/ubsan.patch \
))
# vim: set noet sw=4 ts=4:
--- src/ne_compress.c
+++ src/ne_compress.c
@@ -81,7 +81,7 @@
};
/* Convert 'buf' to unsigned int; 'buf' must be 'unsigned char *' */
-#define BUF2UINT(buf) (((buf)[3]<<24) + ((buf)[2]<<16) + ((buf)[1]<<8) + (buf)[0])
+#define BUF2UINT(buf) (((unsigned)((buf)[3])<<24) + ((buf)[2]<<16) + ((buf)[1]<<8) + (buf)[0])
#define ID1 0x1f
#define ID2 0x8b
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