diff options
author | Yogesh Kumar Shukla <y.shukla@samsung.com> | 2024-09-24 17:45:50 +0530 |
---|---|---|
committer | Yogesh Kumar Shukla <y.shukla@samsung.com> | 2024-09-24 17:45:50 +0530 |
commit | fba0f20427f193bd21eb81f969798c324bc6e7ac (patch) | |
tree | c2e8078e108efd062ba4f3aaaf3bf6c2f1200c85 | |
parent | c7d86f6b4ba67c64eeed5a088204ce720bf096fa (diff) | |
download | email-service-tizen.tar.gz email-service-tizen.tar.bz2 email-service-tizen.zip |
Changes Regarding heap-buffer-overflowHEADaccepted/tizen/unified/x/20240927.022733accepted/tizen/unified/toolchain/20241004.101712accepted/tizen/unified/20240926.184758accepted/tizen/unified/20240926.163041tizenaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified
Change-Id: Ic029d48c99cf159c87eab158cca41b11e2844b78
-rwxr-xr-x | email-core/email-core-smtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/email-core/email-core-smtp.c b/email-core/email-core-smtp.c index 2e1f174..5ae11cf 100755 --- a/email-core/email-core-smtp.c +++ b/email-core/email-core-smtp.c @@ -2268,7 +2268,7 @@ INTERNAL_FUNC int emcore_send_saved_mail(char *multi_user_name, int account_id, goto FINISH_OFF; } - mail_ids = em_malloc(sizeof(int) * total); + mail_ids = em_malloc(sizeof(int) * (total+1)); if (mail_ids == NULL) { EM_DEBUG_EXCEPTION("malloc failed..."); err = EMAIL_ERROR_OUT_OF_MEMORY; |