#
66706f46 |
|
19-Nov-2018 |
Dirk Ziegelmeier <dziegelmeier@de.pepperl-fuchs.com> |
Fix bug #55034: apps/smtp.c fails to compile with strict C compatibility because of strnlen by replacing strnlen with strlen. It's a user-supplied string, so we can assume it is correctly \0 terminated (as done several times elsewhere in the code) (cherry picked from commit aa83bdf490a8b4573823619bfe48e2e75d9dbd49)
|
#
a044c807 |
|
24-Sep-2018 |
Simon Goldschmidt <goldsimon@gmx.de> |
altcp_tls: rename altcp_tls_new -> altcp_tls_wrap, add altcp_tls_new The new altcp_tls_new() is a type safe version of altcp_tls_alloc() Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
|
#
ec8c764f |
|
17-May-2018 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Fix build warning when !(SMTP_SUPPORT_AUTH_PLAIN || SMTP_SUPPORT_AUTH_LOGIN) Fix build warning: ‘smtp_base64_encode’ declared ‘static’ but never defined. Signed-off-by: Axel Lin <axel.lin@ingics.com>
|
#
795f05c5 |
|
17-May-2018 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Fix build warning when SMTP_CHECK_DATA==0 Fix build warning: 'smtp_verify' declared 'static' but never defined. Signed-off-by: Axel Lin <axel.lin@ingics.com>
|
#
2c3c5784 |
|
30-Jan-2018 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Fix wrong sizeof for memset s->bodydh Use sizeof(struct smtp_bodydh_state) to zero all fields of s->bodydh. Signed-off-by: Axel Lin <axel.lin@ingics.com>
|
#
653313cb |
|
12-Jan-2018 |
Dirk Ziegelmeier <dirk@ziegelmeier.net> |
Work on task #14780: Add debug helper asserts to ensure threading/locking requirements are met Add LWIP_ASSERT_CORE_LOCKED() to several more places
|
#
0527c1bd |
|
05-Dec-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Avoid NULL pointer dereference in smtp_send_body_data_handler Move the code to have NULL test before dereference. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: goldsimon <goldsimon@gmx.de>
|
#
f3c86095 |
|
06-Jul-2017 |
goldsimon <goldsimon@gmx.de> |
-Wconversion (still far from finished) and other minor compilation fixes...
|
#
5a27e97b |
|
14-Jun-2017 |
Dirk Ziegelmeier <dirk@ziegelmeier.net> |
smtp.c: Fix detecting overlength server names Thanks to Axel Lin
|
#
3073affa |
|
14-Jun-2017 |
Dirk Ziegelmeier <dirk@ziegelmeier.net> |
Axel Lin correctly pointed out that there is no buffer overflow because smtp_server[SMTP_MAX_SERVERNAME_LEN + 1] - there is always room for terminating 0 byte
|
#
3611b583 |
|
13-Jun-2017 |
Dirk Ziegelmeier <dirk@ziegelmeier.net> |
smtp.c, smtp_set_server_addr: Avoid smtp_server buffer overrun when server name length is SMTP_MAX_SERVERNAME_LEN -> "smtp_server[len] = 0" is an out-of-bound access
|
#
4af43891 |
|
13-Jun-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Ensure smtp_server is NULL terminated Ensure we set correct setting when changing smtp_server setting. Signed-off-by: Axel Lin <axel.lin@ingics.com>
|
#
bab7a32e |
|
13-Jun-2017 |
goldsimon <goldsimon@gmx.de> |
Remove smtp_server when passing NULL to smtp_set_server_addr() (see patch #9373 for discussion)
|
#
117d3abd |
|
06-Jun-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Make smtp_state_str/smtp_result_strs/base64_table static These tables are only referenced in smtp.c, so make them static. Signed-off-by: Axel Lin <axel.lin@ingics.com>
|
#
9dee3460 |
|
11-May-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Fix memory leak in smtp_send_mail_alloced error paths Call smtp_free_struct(s) in all smtp_send_mail_alloced error paths to ensure no memory leak. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
|
#
ae210967 |
|
10-May-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Fix memory leak if SMTP_BODYDH_MALLOC fails Need to free s before return error. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
|
#
5bbe190b |
|
10-May-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Make smtp_send_bodyh_data takes "const char **from" parameter Fixes below build error: cc -g -Wall -DLWIP_DEBUG -pedantic -Werror -Wparentheses -Wsequence-point -Wswitch-default -Wextra -Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wc++-compat -Wwrite-strings -Wold-style-definition -Wcast-align -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Wno-address -Wunreachable-code -Wuninitialized -Wlogical-op -I. -I../../.. -I../../../../lwip/src/include -I../../../ports/unix/port/include -I../../../../mbedtls/include -Wno-redundant-decls -DLWIP_HAVE_MBEDTLS=1 -c ../../../../lwip/src/apps/smtp/smtp.c ../../../../lwip/src/apps/smtp/smtp.c: In function ‘smtp_send_body_data_handler’: ../../../../lwip/src/apps/smtp/smtp.c:1487:41: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual] if((res = smtp_send_bodyh_data(pcb, (char **)&s->body, &s->body_len)) ^ ../../../../lwip/src/apps/smtp/smtp.c:1507:47: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual] ((res = smtp_send_bodyh_data(pcb, (char **)&s->body, &s->body_len)) == BDHALLDATASENT) ^ cc1: all warnings being treated as errors ../../Common.allports.mk:94: recipe for target 'smtp.o' failed make: *** [smtp.o] Error 1 Signed-off-by: Axel Lin <axel.lin@ingics.com>
|
#
f5f34f13 |
|
10-May-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Fix missing altcp conversion in smtp_send_bodyh_data The pcb is "struct altcp_pcb *" so we cannot call tcp_sndbuf/tcp_write here. Use altcp_sndbuf/altcp_write instead. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
|
#
b9d5399e |
|
09-May-2017 |
Axel Lin <axel.lin@ingics.com> |
apps/smtp: Trivial typo fixes s/smpt/smtp/g Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
|
#
3266511e |
|
28-Mar-2017 |
Dirk Ziegelmeier <dirk@ziegelmeier.net> |
Improve documentation, add TLS stuff
|
#
9b6192bd |
|
28-Mar-2017 |
Dirk Ziegelmeier <dirk@ziegelmeier.net> |
Create smtp_opts.h and add SMTP client to doxygen docs
|
#
3826bcce |
|
28-Mar-2017 |
Dirk Ziegelmeier <dirk@ziegelmeier.net> |
Move SMTP from contrib to main lwIP rep - with TLS support, it becomes useful again
|