projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regex: test for buffer overrun
[gnulib.git]
/
lib
/
uniname
/
uniname.c
diff --git
a/lib/uniname/uniname.c
b/lib/uniname/uniname.c
index
cf2be15
..
2f1abe8
100644
(file)
--- a/
lib/uniname/uniname.c
+++ b/
lib/uniname/uniname.c
@@
-1,5
+1,5
@@
/* Association between Unicode characters and their names.
/* Association between Unicode characters and their names.
- Copyright (C) 2000-2002, 2005-2007, 2009-201
0
Free Software Foundation, Inc.
+ Copyright (C) 2000-2002, 2005-2007, 2009-201
3
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
@@
-388,19
+388,19
@@
unicode_name_character (const char *name)
unsigned int index1;
for (index1 = 0; index1 < 19; index1++)
unsigned int index1;
for (index1 = 0; index1 < 19; index1++)
- if (memcmp(jamo_initial_short_name[index1], p1, n1) == 0
+ if (memcmp
(jamo_initial_short_name[index1], p1, n1) == 0
&& jamo_initial_short_name[index1][n1] == '\0')
{
unsigned int index2;
for (index2 = 0; index2 < 21; index2++)
&& jamo_initial_short_name[index1][n1] == '\0')
{
unsigned int index2;
for (index2 = 0; index2 < 21; index2++)
- if (memcmp(jamo_medial_short_name[index2], p2, n2) == 0
+ if (memcmp
(jamo_medial_short_name[index2], p2, n2) == 0
&& jamo_medial_short_name[index2][n2] == '\0')
{
unsigned int index3;
for (index3 = 0; index3 < 28; index3++)
&& jamo_medial_short_name[index2][n2] == '\0')
{
unsigned int index3;
for (index3 = 0; index3 < 28; index3++)
- if (memcmp(jamo_final_short_name[index3], p3, n3) == 0
+ if (memcmp
(jamo_final_short_name[index3], p3, n3) == 0
&& jamo_final_short_name[index3][n3] == '\0')
{
return 0xAC00 + (index1 * 21 + index2) * 28 + index3;
&& jamo_final_short_name[index3][n3] == '\0')
{
return 0xAC00 + (index1 * 21 + index2) * 28 + index3;