Skip to content
Snippets Groups Projects
Commit e3c32819 authored by rswindell's avatar rswindell
Browse files

Fixed potential buffer overflow in stripping of FidoNet kludge lines.

parent 20bba1a8
No related branches found
No related tags found
No related merge requests found
...@@ -385,7 +385,10 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum ...@@ -385,7 +385,10 @@ bool sbbs_t::writemsg(char *fname, char *top, char *title, long mode, int subnum
/* Strip FidoNet Kludge Lines? */ /* Strip FidoNet Kludge Lines? */
if(buf[l]==1 && useron.xedit if(buf[l]==1 && useron.xedit
&& cfg.xedit[useron.xedit-1]->misc&STRIPKLUDGE) { && cfg.xedit[useron.xedit-1]->misc&STRIPKLUDGE) {
while(buf[l]!=LF) l++; while(buf[l] && buf[l]!=LF)
l++;
if(buf[l]==0)
break;
continue; continue;
} }
if(!(mode&(WM_EMAIL|WM_NETMAIL)) if(!(mode&(WM_EMAIL|WM_NETMAIL))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment