diff options
author | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-02-11 15:55:27 +0900 |
---|---|---|
committer | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-02-11 15:55:27 +0900 |
commit | f4ca3139aa5b0e98f390a500fae17c156528ef85 (patch) | |
tree | b9aa2d7cb280ed74f3b07475cf8417d4d3e3f466 | |
parent | f3621c55e4aee160c6cd8ed4bd7c0d857470bcee (diff) | |
download | msg-service-f4ca3139aa5b0e98f390a500fae17c156528ef85.tar.gz msg-service-f4ca3139aa5b0e98f390a500fae17c156528ef85.tar.bz2 msg-service-f4ca3139aa5b0e98f390a500fae17c156528ef85.zip |
alloc-dealloc mismatch bug fixedsubmit/tizen_ivi/20160217.000003submit/tizen_ivi/20160217.000000submit/tizen_common/20160218.142243submit/tizen/20160211.071141accepted/tizen/wearable/20160211.084044accepted/tizen/tv/20160211.084023accepted/tizen/mobile/20160211.084007accepted/tizen/ivi/20160218.023748
Change-Id: Ie1ff7f77182d235705672a64e01ff5a763945e6e
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
-rwxr-xr-x | plugin/sms_plugin/SmsPluginParamCodec.cpp | 4 | ||||
-rwxr-xr-x | plugin/sms_plugin/include/SmsPluginTypes.h | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugin/sms_plugin/SmsPluginParamCodec.cpp b/plugin/sms_plugin/SmsPluginParamCodec.cpp index bb40be6..a3d7709 100755 --- a/plugin/sms_plugin/SmsPluginParamCodec.cpp +++ b/plugin/sms_plugin/SmsPluginParamCodec.cpp @@ -112,7 +112,7 @@ int SmsPluginParamCodec::encodeTime(const SMS_TIMESTAMP_S *pTimeStamp, char **pp int SmsPluginParamCodec::encodeDCS(const SMS_DCS_S *pDCS, char **ppParam) { - *ppParam = new char; + *ppParam = new char[MAX_DCS_PARAM_LEN]; **ppParam = 0x00; @@ -164,7 +164,7 @@ int SmsPluginParamCodec::encodeDCS(const SMS_DCS_S *pDCS, char **ppParam) return 0; } - return 1; + return MAX_DCS_PARAM_LEN; } diff --git a/plugin/sms_plugin/include/SmsPluginTypes.h b/plugin/sms_plugin/include/SmsPluginTypes.h index 3d74b7e..646947f 100755 --- a/plugin/sms_plugin/include/SmsPluginTypes.h +++ b/plugin/sms_plugin/include/SmsPluginTypes.h @@ -43,6 +43,7 @@ extern "C" #define MAX_SMS_SEND_RETRY 4 #define MAX_SMSC_LEN 20 #define MAX_ADD_PARAM_LEN 12 +#define MAX_DCS_PARAM_LEN 1 #define MAX_ABS_TIME_PARAM_LEN 7 #define MAX_REL_TIME_PARAM_LEN 1 #define MAX_UD_HEADER_NUM 7 |