[xiph-cvs] cvs commit: icecast/src refbuf.c
Michael Smith
msmith at xiph.org
Mon Feb 24 06:56:50 PST 2003
msmith 03/02/24 09:56:49
Modified: src refbuf.c
Log:
Commit fix for segfault in buffer length handling code.
Revision Changes Path
1.3 +4 -1 icecast/src/refbuf.c
Index: refbuf.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/refbuf.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- refbuf.c 24 Feb 2003 13:37:15 -0000 1.2
+++ refbuf.c 24 Feb 2003 14:56:49 -0000 1.3
@@ -99,7 +99,10 @@
item->refbuf = refbuf;
item->next = *queue;
- item->total_length = item->next->total_length + item->refbuf->len;
+ if(item->next)
+ item->total_length = item->next->total_length + item->refbuf->len;
+ else
+ item->total_length = item->refbuf->len;
*queue = item;
}
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list