[xiph-commits] r3866 - liboggz/trunk/src/liboggz

conrad at svn.annodex.net conrad at svn.annodex.net
Wed Feb 25 21:22:29 PST 2009


Author: conrad
Date: 2009-02-25 21:22:29 -0800 (Wed, 25 Feb 2009)
New Revision: 3866

Modified:
   liboggz/trunk/src/liboggz/oggz_auto.c
Log:
oggz_auto_dirac: check malloc return

Modified: liboggz/trunk/src/liboggz/oggz_auto.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz_auto.c	2009-02-25 23:32:58 UTC (rev 3865)
+++ liboggz/trunk/src/liboggz/oggz_auto.c	2009-02-26 05:22:29 UTC (rev 3866)
@@ -367,6 +367,7 @@
   dirac_info *info;
 
   info = oggz_malloc(sizeof(dirac_info));
+  if (info == NULL) return -1;
 
   dirac_parse_info(info, data, length);
 



More information about the commits mailing list