Switch off UBSan for sha1 to reduce number of log messages
authorSlava Barinov <v.barinov@samsung.com>
Wed, 24 Aug 2016 12:30:20 +0000 (15:30 +0300)
committerIvan Baravy <i.baravy@samsung.com>
Tue, 21 Feb 2017 18:45:29 +0000 (21:45 +0300)
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)
 {