xreef / EMailSender

Arduino, esp32, Esp8266 EMailSender with Arduino IDE, simple library to send email via smtp with attachments.
https://www.mischianti.org/category/my-libraries/emailsender-send-email-with-attachments/
MIT License
74 stars 26 forks source link

Constructed as Stack variable crashes #3

Closed mnewman401 closed 4 years ago

mnewman401 commented 4 years ago

When EMailSender is constructed as a stack variable it crashes. This is due to the delete [] call on the variables email_login, email_from and email_password. They should be initialized to NULL pointers to allow the delete [] to work properly.

char* email_login = 0;
char* email_from = 0;
char* email_password = 0;
xreef commented 4 years ago

I'm going to fix. Thanks for the support

mnewman401 commented 4 years ago

glad to help. Thanks for posting the code.

On Sun, Dec 15, 2019 at 5:00 PM Renzo Mischianti notifications@github.com wrote:

I'm going to fix. Thanks for the support

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xreef/EMailSender/issues/3?email_source=notifications&email_token=ABUAGI2OJWTHXAGQ4R6I6KTQY2SGLA5CNFSM4J3BNBAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG5DILY#issuecomment-565851183, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUAGI7OSALY7KQJ33HVMODQY2SGLANCNFSM4J3BNBAA .

-- Michael Newman Dragonnorth Group www.dragonnorth.com

Phone: 617 566-7975 Cell: 617 821-4608

16 Nason Hill Lane Sherborn, MA 01770