CVSROOT: /cvs Module name: src Changes by: be...@cvs.openbsd.org 2021/07/26 00:09:05
Modified files: lib/libc/arch/mips64/string: Tag: OPENBSD_6_9 strchr.S strrchr.S Log message: On mips64, the strchr/index/strrchr/rindex functions in libc handled signed characters incorrectly. Original commit in current: Modified files: lib/libc/arch/mips64/string/strchr.S (1.4) lib/libc/arch/mips64/string/strrchr.S (1.4) Fix strchr() and strrchr() on mips64 Truncate the character arguments of strchr() and strrchr() to eight bits so that the implied char conversion would work correctly. Otherwise the functions would always return NULL when the character argument is negative. OK miod@ This is patches/6.9/common/011_strchr.patch.sig