Date: Sun, 21 Nov 2004 03:14:32 +0000 (UTC) From: "Tim J. Robbins" <tjr@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/regex engine.c Message-ID: <200411210314.iAL3EWrN019655@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
tjr 2004-11-21 03:14:32 UTC
FreeBSD src repository
Modified files:
lib/libc/regex engine.c
Log:
Fix computation of the 'n' argument to mbrtowc (through XMBRTOWC) to avoid
reading past 'stop' in various places when converting multibyte characters.
Reading too far caused truncation to not be detected when it should have
been, eventually causing regexec() to loop infinitely in with certain
combinations of patterns and strings in multibyte locales.
PR: 74020
MFC after: 4 weeks
Revision Changes Path
1.15 +4 -4 src/lib/libc/regex/engine.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411210314.iAL3EWrN019655>
