search for: bos_page

Displaying 1 result from an estimated 1 matches for "bos_page".

2011 Apr 29
4
You don't check for malloc failure
...ERROR) diff -ru icecast-2.3.2-ORIG/src/format_vorbis.c icecast-2.3.2/src/format_vorbis.c --- icecast-2.3.2-ORIG/src/format_vorbis.c Thu Sep 13 00:40:55 2007 +++ icecast-2.3.2/src/format_vorbis.c Thu Apr 28 19:54:26 2011 @@ -401,6 +401,9 @@ plugin->set_tag = vorbis_set_tag; vorbis->bos_page.header = malloc (page->header_len + page->body_len); + if (vorbis->bos_page.header == NULL) { + abort(); + } memcpy (vorbis->bos_page.header, page->header, page->header_len); vorbis->bos_page.header_len = page->header_len; diff -ru icecast-2.3.2-ORIG/sr...