git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2469769
)
Update ${utf8clean }. Bug 1401
author
Axel Rau
<axel.rau@chaos1.de>
Mon, 14 Apr 2014 19:02:41 +0000
(20:02 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Mon, 14 Apr 2014 19:02:41 +0000
(20:02 +0100)
src/src/expand.c
patch
|
blob
|
history
diff --git
a/src/src/expand.c
b/src/src/expand.c
index 64a3a86e6156a5b3282dc475f67fa0023de579d8..7a3252eaa17fa4f97aa44f77fcea4f5b8479863b 100644
(file)
--- a/
src/src/expand.c
+++ b/
src/src/expand.c
@@
-6189,8
+6189,13
@@
while (*s != 0)
}
if((c & 0xe0) == 0xc0) /* 2-byte sequence */
{
- bytes_left = 1;
- codepoint = c & 0x1f;
+ if(c == 0xc0 || c == 0xc1) /* 0xc0 and 0xc1 are illegal */
+ complete = -1;
+ else
+ {
+ bytes_left = 1;
+ codepoint = c & 0x1f;
+ }
}
else if((c & 0xf0) == 0xe0) /* 3-byte sequence */
{