billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=3ee79131e49397e38787a07fe70ce8db9c2ff8da

commit 3ee79131e49397e38787a07fe70ce8db9c2ff8da
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Jul 2 23:51:25 2020 +0200

    termptyesc: no sanitize with musl when calling isnan()
---
 src/bin/termptyesc.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index ea3e4df..fab911d 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -3762,6 +3762,13 @@ _xterm_parse_color_sharp(Eina_Unicode *p,
    return 0;
 }
 
+/* isnan() in musl generates  ' runtime error: negation of 1 cannot be
+ * represented in type 'unsigned long long'
+ * under ubsan
+ */
+#if defined(__clang__) && !defined(__GLIBC__)
+__attribute__((no_sanitize("unsigned-integer-overflow")))
+#endif
 /* returns len read or -1 in case of error */
 static int
 _xterm_parse_intensity(Eina_Unicode *p, unsigned char *c, int len)

-- 


Reply via email to