projects
/
framework
/
uifw
/
cbhm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3722ec8
)
add bounds checking at storage buffer
author
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Wed, 23 Feb 2011 07:42:54 +0000
(16:42 +0900)
committer
Hyoyoung Chang
<hyoyoung.chang@samsung.com>
Wed, 23 Feb 2011 07:42:54 +0000
(16:42 +0900)
src/xcnphandler.c
patch
|
blob
|
history
diff --git
a/src/xcnphandler.c
b/src/xcnphandler.c
index
2b854ff
..
3f0fcf5
100755
(executable)
--- a/
src/xcnphandler.c
+++ b/
src/xcnphandler.c
@@
-115,6
+115,8
@@
int add_to_storage_buffer(void *data, char *src, int len)
if (len <= 0)
return -1;
+ if (len > HISTORY_QUEUE_ITEM_SIZE)
+ len = HISTORY_QUEUE_ITEM_SIZE;
if (g_lastest_content != NULL)
free(g_lastest_content);