From: Michael Schroeder Date: Wed, 21 Jan 2009 10:46:36 +0000 (+0100) Subject: - also reject chars >= 0xfe X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfda416d58eca3a6eed9e227ec93b733abf4693c;p=thirdparty%2Flibsolv.git - also reject chars >= 0xfe --- diff --git a/tools/repo_rpmdb.c b/tools/repo_rpmdb.c index 04bb2bcd..f400c1ae 100644 --- a/tools/repo_rpmdb.c +++ b/tools/repo_rpmdb.c @@ -337,7 +337,7 @@ setutf8string(Repodata *repodata, Id handle, Id tag, const char *str) { /* new sequence */ if (c >= 0xfe) - c = 0xfffd; + break; else if (c >= 0xfc) c = (c & 0x01) | 0xbffffffc; /* 5 bytes to follow */ else if (c >= 0xf8)