diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-15 23:53:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-15 23:53:28 +0000 |
commit | aaeb664e0c3e8b9f2717360ef546c39a1d2f678e (patch) | |
tree | dd5c109afac147375ab8527dde6bc016708f63fd /codecs | |
parent | 01335bddeef0235ec406792eab171345978028c2 (diff) |
Merged revisions 98946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r98946 | russell | 2008-01-15 17:50:10 -0600 (Tue, 15 Jan 2008) | 11 lines
Change a buffer in check_auth() to be a thread local dynamically allocated
buffer, instead of a massive buffer on the stack. This fixes a crash reported
by Qwell due to running out of stack space when building with LOW_MEMORY defined.
On a very related note, the usage of BUFSIZ in various places in chan_sip is
arbitrary and careless. BUFSIZ is a system specific define. On my machine,
it is 8192, but by definition (according to google) could be as small as 256.
So, this buffer in check_auth was 16 kB. We don't even support SIP messages
larger than 4 kB! Further usage of this define should be avoided, unless it
is used in the proper context.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98948 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
0 files changed, 0 insertions, 0 deletions