summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2020-07-02 23:51:25 +0200
committerBoris Faure <billiob@gmail.com>2020-07-02 23:51:25 +0200
commit3ee79131e49397e38787a07fe70ce8db9c2ff8da (patch)
tree688bccb1ac26c33e2ea3570fb5a988f39cc934d7
parentc2dd1815c8873690c249545c64cf288359b40afb (diff)
termptyesc: no sanitize with musl when calling isnan()
-rw-r--r--src/bin/termptyesc.c7
1 files changed, 7 insertions, 0 deletions
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,
3762 return 0; 3762 return 0;
3763} 3763}
3764 3764
3765/* isnan() in musl generates ' runtime error: negation of 1 cannot be
3766 * represented in type 'unsigned long long'
3767 * under ubsan
3768 */
3769#if defined(__clang__) && !defined(__GLIBC__)
3770__attribute__((no_sanitize("unsigned-integer-overflow")))
3771#endif
3765/* returns len read or -1 in case of error */ 3772/* returns len read or -1 in case of error */
3766static int 3773static int
3767_xterm_parse_intensity(Eina_Unicode *p, unsigned char *c, int len) 3774_xterm_parse_intensity(Eina_Unicode *p, unsigned char *c, int len)