[ARM PATCH] 1293/1: fix to the ARM optimized strchr()
Two bugs here: 1) The return value of strchr("foo",0) should be the start address of "foo" + 3, not NULL. 2) Since the second argument for strchr() is defined as an int, some characters such as 'é' might validly end up to be the value -23 due to signedness issues. Corectly handle those.
Showing
Please register or sign in to comment