projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ed937f
)
- also reject chars >= 0xfe
author
Michael Schroeder
<mls@suse.de>
Wed, 21 Jan 2009 10:46:36 +0000
(11:46 +0100)
committer
Michael Schroeder
<mls@suse.de>
Wed, 21 Jan 2009 10:46:36 +0000
(11:46 +0100)
tools/repo_rpmdb.c
patch
|
blob
|
history
diff --git
a/tools/repo_rpmdb.c
b/tools/repo_rpmdb.c
index
04bb2bc
..
f400c1a
100644
(file)
--- 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)
{
/* new sequence */
if (c >= 0xfe)
-
c = 0xfffd
;
+
break
;
else if (c >= 0xfc)
c = (c & 0x01) | 0xbffffffc; /* 5 bytes to follow */
else if (c >= 0xf8)
else if (c >= 0xfc)
c = (c & 0x01) | 0xbffffffc; /* 5 bytes to follow */
else if (c >= 0xf8)