<div dir="ltr">__dfsw_strchr does not correctly handle when the character argument is terminating character '\0'.<div><br></div><div>Originally, strchr function handles the case to return the address of the end of the string.</div><div><br></div><div>However, __dfsw_strchr returns null pointer for the case.</div><div><br></div><div>Corresponding bug report: <a href="https://bugs.llvm.org/show_bug.cgi?id=22392">https://bugs.llvm.org/show_bug.cgi?id=22392</a></div></div>