mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-22 04:15:54 -04:00
Experimental fix for memory errors when using a lot of headers, see #1885
svn path=/icecast/trunk/icecast/; revision=19316
This commit is contained in:
parent
c8791e3c79
commit
42f763bf37
@ -232,12 +232,11 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client)
|
||||
if (problem == 0)
|
||||
{
|
||||
size_t full_len = strlen (mediatype) + len + 1024;
|
||||
refbuf_t *refbuf = refbuf_new (full_len);
|
||||
ssize_t ret;
|
||||
int failed = 0;
|
||||
|
||||
if (full_len < 4096)
|
||||
full_len = 4096;
|
||||
refbuf_t *refbuf = refbuf_new (full_len);
|
||||
ssize_t ret;
|
||||
int failed = 0;
|
||||
|
||||
if (string == NULL)
|
||||
string = xmlCharStrdup ("");
|
||||
|
Loading…
Reference in New Issue
Block a user