diff options
author | Skylar Chang <chiaweic@codeaurora.org> | 2014-05-20 06:34:25 -0700 |
---|---|---|
committer | Skylar Chang <chiaweic@codeaurora.org> | 2014-05-21 19:27:09 -0700 |
commit | fcb575daa6cbb751a4014a05f6a8f1983a0f89c5 (patch) | |
tree | 3b7de5d7b69953621161703823e236d320bad6bb /ipacm/inc/IPACM_Iface.h | |
parent | 30c1b45560d5315100322e7a172f029a7cd188b8 (diff) | |
download | ipacfg-mgr-fcb575daa6cbb751a4014a05f6a8f1983a0f89c5.tar.gz |
IPACM: fix klocwork issue
Fix some potential memory overflow/leak issue
reported by Klocwork tool.
Change-Id: Id6f8874eb13fd69eae5e0b30cc32025ccd199492
Diffstat (limited to 'ipacm/inc/IPACM_Iface.h')
-rw-r--r-- | ipacm/inc/IPACM_Iface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipacm/inc/IPACM_Iface.h b/ipacm/inc/IPACM_Iface.h index 436e99e..0520dba 100644 --- a/ipacm/inc/IPACM_Iface.h +++ b/ipacm/inc/IPACM_Iface.h @@ -51,6 +51,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "IPACM_Log.h" #include "IPACM_Config.h" #include "IPACM_Defs.h" +#include <string.h> /* current support 2 ipv6-address*/ #define MAX_DEFAULT_v4_ROUTE_RULES 1 @@ -121,6 +122,12 @@ public: /*Query the IPA endpoint property */ int query_iface_property(void); + /*implement IPACM strlcpy */ + size_t strlcpy(char *dest, const char *src, size_t size); + + /*implement IPACM strlcat */ + size_t strlcat(char *dest, const char *src, size_t n); + /*Configure the initial filter rules */ virtual int init_fl_rule(ipa_ip_type iptype); |