fix longstanding exit logic bugs in mbsnrtowcs and wcsnrtombs
authorRich Felker <dalias@aerifal.cx>
Wed, 2 May 2012 17:59:48 +0000 (13:59 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 2 May 2012 17:59:48 +0000 (13:59 -0400)
these are POSIX 2008 (previously GNU extension) functions that are
rarely used. apparently they had never been tested before, since the
end-of-string logic was completely missing. mbsnrtowcs is used by
modern versions of bash for its glob implementation, and and this bug
was causing tab completion to hang in an infinite loop.


No differences found