diff options
author | imura <imura@FreeBSD.org> | 2005-08-24 12:38:26 +0000 |
---|---|---|
committer | imura <imura@FreeBSD.org> | 2005-08-24 12:38:26 +0000 |
commit | a32dd5a1510abc8ffe97a9cbea2c32b28dc891bd (patch) | |
tree | 82f3218f6e319b639049eac4448ce42471530736 /lib | |
parent | f2022037751170a4dbecfcccec43386b53442680 (diff) | |
download | FreeBSD-src-a32dd5a1510abc8ffe97a9cbea2c32b28dc891bd.zip FreeBSD-src-a32dd5a1510abc8ffe97a9cbea2c32b28dc891bd.tar.gz |
- Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv,
- Add checking range of strings to iconv_sysctl_add().
Submitted by: Rudolf Cejka
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkiconv/xlat16_sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkiconv/xlat16_sysctl.c b/lib/libkiconv/xlat16_sysctl.c index 5078c28..28420d9 100644 --- a/lib/libkiconv/xlat16_sysctl.c +++ b/lib/libkiconv/xlat16_sysctl.c @@ -54,7 +54,7 @@ kiconv_add_xlat16_table(const char *to, const char *from, const void *data, int struct iconv_add_out dout; size_t olen; - if (strlen(from) > ICONV_CSNMAXLEN || strlen(to) > ICONV_CSNMAXLEN) + if (strlen(from) >= ICONV_CSNMAXLEN || strlen(to) >= ICONV_CSNMAXLEN) return (EINVAL); din.ia_version = ICONV_ADD_VER; strcpy(din.ia_converter, "xlat16"); |