Menu

#1 Uninitialised string buffers

open
nobody
None
5
2005-01-17
2005-01-17
No

In the patched asterisk.c there are 2 buffers for options
and arguments:

char args[512];

and

char opts[1024];

These are appended to when arguments are parsed from
the command line but they are never initialised. I use
the following as a work-around.

args[0]='\0';
opts[0]='\0';

This is the cause of the 'non-writable char' prepended
to the options around line 2000.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.