projects
/
platform
/
core
/
uifw
/
isf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2fea85
)
Fix buffer overflow issue
19/159819/1
author
InHong Han
<inhong1.han@samsung.com>
Mon, 13 Nov 2017 04:51:09 +0000
(13:51 +0900)
committer
InHong Han
<inhong1.han@samsung.com>
Mon, 13 Nov 2017 06:33:39 +0000
(06:33 +0000)
Change-Id: Ib82a3b13e5233c37a9862d12db9da4d9fdde3fd4
(cherry picked from commit
df4e7271f19da18a926e6d0b4081ab7d5b3d5a78
)
ism/src/scim_socket.cpp
patch
|
blob
|
history
diff --git
a/ism/src/scim_socket.cpp
b/ism/src/scim_socket.cpp
index
608e3ad
..
9afb080
100644
(file)
--- a/
ism/src/scim_socket.cpp
+++ b/
ism/src/scim_socket.cpp
@@
-267,7
+267,7
@@
SocketAddress::SocketAddressImpl::set_address (const String &addr)
memset (un->sun_path, 0, sizeof (un->sun_path));
- strncpy (un->sun_path, real_addr.c_str (), sizeof (un->sun_path));
+ strncpy (un->sun_path, real_addr.c_str (), sizeof (un->sun_path)
- 1
);
un->sun_path[sizeof (un->sun_path) - 1] = '\0';