steakhal wrote:
There is a crash for this code:
```c++
char *strchr(const char *, int);
const unsigned short w[] = u"abc";
void f(void){ (void)strchr((const char*)w, 'a'); } // crash
```
While this is unusual code, the analyzer should gracefully handle the case
without crashing.
The crash reproduces for strchr, strrchr, memchr, strstr, strpbrk (needle side
too)
https://github.com/llvm/llvm-project/pull/210154
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits