projects
/
platform
/
core
/
uifw
/
libhangul.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eaad37
)
HanjaList, PtrVector는 UINT_MAX를 넘지 않는 범위에서 사용하도록 한다.
author
Choe Hwanjin
<choe.hwanjin@gmail.com>
Sun, 24 Feb 2008 01:52:22 +0000
(10:52 +0900)
committer
Choe Hwanjin
<choe.hwanjin@gmail.com>
Sun, 24 Feb 2008 01:52:22 +0000
(10:52 +0900)
git-svn-id: http://kldp.net/svn/hangul/libhangul/trunk@163
8f00fcd2
-89fc-0310-932e-
b01be5b65e01
hangul/hanja.c
patch
|
blob
|
history
diff --git
a/hangul/hanja.c
b/hangul/hanja.c
index
ec17c55
..
2db6c65
100644
(file)
--- a/
hangul/hanja.c
+++ b/
hangul/hanja.c
@@
-333,7
+333,7
@@
ptr_vector_get_length(PtrVector* vector)
static void
ptr_vector_append(PtrVector* vector, void* data)
{
- if (vector->alloc < vector->len + 1) {
+ if (vector->alloc < vector->len + 1
&& vector->alloc < UINT_MAX / 2
) {
size_t alloc = vector->alloc * 2;
void** ptrs;
@@
-457,7
+457,7
@@
hanja_list_new(const char *key)
static void
hanja_list_reserve(HanjaList* list, size_t n)
{
- if (list->alloc < list->len + n) {
+ if (list->alloc < list->len + n
&& list->alloc < UINT_MAX / 2
) {
const Hanja** data;
size_t size = list->alloc;