[CRIU] [PATCH 3/3] tun: Use safe stlcpy instead of strcpy

Cyrill Gorcunov gorcunov at openvz.org
Fri Aug 23 12:25:21 EDT 2013


Reading from NetDeviceEntry directly is not safe
and may cause buffer overflow. Use stlcpy helper.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 tun.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-tun-Use-safe-stlcpy-instead-of-strcpy.patch
Type: text/x-patch
Size: 1415 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130823/f6cd39a1/attachment.bin>


More information about the CRIU mailing list