termptyesc: no sanitize with musl when calling isnan()

This commit is contained in:
Boris Faure 2020-07-02 23:51:25 +02:00
parent c2dd1815c8
commit 3ee79131e4
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 7 additions and 0 deletions

View File

@ -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)