From: Rich Felker Date: Wed, 2 May 2012 17:59:48 +0000 (-0400) Subject: fix longstanding exit logic bugs in mbsnrtowcs and wcsnrtombs X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=485fb14ab414ef7fde4469a51b116281758a4aa0;hp=485fb14ab414ef7fde4469a51b116281758a4aa0;ds=sidebyside fix longstanding exit logic bugs in mbsnrtowcs and wcsnrtombs 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. ---