POP3.cpp Crashes Board

Discussion to talk about software related topics only.
Post Reply
kackle123
Posts: 73
Joined: Tue Nov 23, 2010 1:35 pm

POP3.cpp Crashes Board

Post by kackle123 »

To whom it may concern:
I found my otherwise-stable email client code crashing my board when using a certain email server. I dug in deeper and found that the lines

Code: Select all

( *subject_ptr ) = strstr( buffer, "Subject:" );
and

Code: Select all

( *body_ptr ) = strstr( buffer, "Content-Type:" );
within NB's POP3.cpp (my NB release is v2.5.3) might be NULL, causing problems later. For those experiencing a similar issue, I would change that NB code to check for a NULL before moving on.
Last edited by kackle123 on Mon Dec 29, 2014 7:25 am, edited 1 time in total.
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: POP3.cpp Crashes Board

Post by dciliske »

Issue noted. I'll take a look at this after the holidays.

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply