Fixed bug #2002: Zebra crashes during merge using ICU indexing.
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 9 Jan 2008 14:53:26 +0000 (14:53 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 9 Jan 2008 14:53:26 +0000 (14:53 +0000)
commit6b75f88ead401c95ebf4e6d6761447264789c01a
tree08594ce4e938ad58444a0af7fa88ef1e07239fd2
parentc9a42d334f292b889d643cf80f6b330c051a9597
Fixed bug #2002: Zebra crashes during merge using ICU indexing.

The ICU stuff may produce long strings which results in buffer overflow.
This patch fixes that. The old charmap system produced srings no
longer than IT_MAX_WORD which is considerably less than INP_NAME_MAX
in kinput.c. This fixes key_file_read so that strings longer than
IT_MAX_WORD are truncated.
index/kinput.c