Switch off UBSan for sha1 to reduce number of log messages 59/94859/3
authorSlava Barinov <v.barinov@samsung.com>
Wed, 24 Aug 2016 12:30:20 +0000 (15:30 +0300)
committerDongkyun, Son <dongkyun.s@samsung.com>
Wed, 16 Nov 2016 04:42:16 +0000 (13:42 +0900)
The sha1 contains intentional unaligned access

Change-Id: I5bb6d0c9bf274e8ed0fe4c87c341dee054623202
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
libiberty/sha1.c

index 617e743..ba68039 100644 (file)
@@ -283,6 +283,7 @@ sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx)
    It is assumed that LEN % 64 == 0.
    Most of this code comes from GnuPG's cipher/sha1.c.  */
 
+__attribute__((no_sanitize_undefined))
 void
 sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx)
 {