OSDN Git Service

Correct potential infinite loop in pg_utf2wchar_with_len;
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Apr 1999 20:35:51 +0000 (20:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Apr 1999 20:35:51 +0000 (20:35 +0000)
commit0d99c95388a7edc4ddb8897776e80de00944ded0
tree86577adab69447605b6641a9ccb96c2a6de22e67
parent2acfc4f6b4cbd3c69ba399d5d1f52730411e5508
Correct potential infinite loop in pg_utf2wchar_with_len;
it failed to cover the case where high bits of char are 100 or 101.
Not sure if fix is right, but it agrees with pg_utf_mblen ... and it
doesn't lock up ...
src/backend/utils/mb/wchar.c