aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/big5hkscs.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-08 04:31:55 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-08 04:31:55 +0000
commit63e18f77e2e1cfadfd7d6daa0c2c6583c7c7d7d9 (patch)
tree3fe8e844e0ae9311d223e137b928b33e886b1530 /iconvdata/big5hkscs.c
parentc329332e73e86c669f5be363aef2fb18006b0c48 (diff)
downloadglibc-63e18f77e2e1cfadfd7d6daa0c2c6583c7c7d7d9.zip
glibc-63e18f77e2e1cfadfd7d6daa0c2c6583c7c7d7d9.tar.gz
glibc-63e18f77e2e1cfadfd7d6daa0c2c6583c7c7d7d9.tar.bz2
Update.
* iconvdata/tst-tables.sh: Actually return with an error if something goes wrong. * iconvdata/tst-table.sh: Return with an error if any of the cmp fails. * iconvdata/big5hkscs.c (BODY of FROM_LOOP): Reject 0xff as input.
Diffstat (limited to 'iconvdata/big5hkscs.c')
-rw-r--r--iconvdata/big5hkscs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iconvdata/big5hkscs.c b/iconvdata/big5hkscs.c
index e5097c7..316baa1 100644
--- a/iconvdata/big5hkscs.c
+++ b/iconvdata/big5hkscs.c
@@ -11727,6 +11727,11 @@ static struct
\
inptr += 2; \
} \
+ else if (__builtin_expect (ch, 0) == 0xff) \
+ { \
+ result = __GCONV_ILLEGAL_INPUT; \
+ break; \
+ } \
else \
++inptr; \
\