projects
/
platform
/
core
/
messaging
/
email-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7d86f6
)
Changes Regarding heap-buffer-overflow
01/318101/1
accepted/tizen_unified
accepted/tizen_unified_toolchain
accepted/tizen_unified_x
accepted/tizen_unified_x_asan
tizen
accepted/tizen/unified/20240926.163041
accepted/tizen/unified/20240926.184758
accepted/tizen/unified/toolchain/20241004.101712
accepted/tizen/unified/x/20240927.022733
accepted/tizen/unified/x/asan/20241014.000033
author
Yogesh Kumar Shukla
<y.shukla@samsung.com>
Tue, 24 Sep 2024 12:15:50 +0000
(17:45 +0530)
committer
Yogesh Kumar Shukla
<y.shukla@samsung.com>
Tue, 24 Sep 2024 12:15:50 +0000
(17:45 +0530)
Change-Id: Ic029d48c99cf159c87eab158cca41b11e2844b78
email-core/email-core-smtp.c
patch
|
blob
|
history
diff --git
a/email-core/email-core-smtp.c
b/email-core/email-core-smtp.c
index
2e1f174
..
5ae11cf
100755
(executable)
--- 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;