SSL_connect overflows stack

Discussion to talk about software related topics only.
Post Reply
John.Ohl
Posts: 20
Joined: Mon Dec 03, 2012 7:00 pm

SSL_connect overflows stack

Post by John.Ohl »

If NB_SSL_SUPPORTED is defined and NB_SSH_SUPPORTED is left undefined, all the stack sizes are left set to 2048, causing SSL_connect to overflow the stack if it is called from the main stack or any other stack for which the size is < ~4096

Thx!
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: SSL_connect overflows stack

Post by dciliske »

You are correct sir. The new check is

Code: Select all

#if defined NB_SSH_SUPPORTED || defined NB_SSL_SUPPORTED
Also, in predefs.h the define for TLS is moved to be automatically set when SSL is enabled, and (if for some reason you didn't want it (?)) can be disabled.

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
John.Ohl
Posts: 20
Joined: Mon Dec 03, 2012 7:00 pm

Re: SSL_connect overflows stack

Post by John.Ohl »

Sounds good thx!
Post Reply