[asterisk-commits] branch 1.2 r37765 - /branches/1.2/formats/format_h263.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Jul 17 08:52:16 MST 2006


Author: tilghman
Date: Mon Jul 17 10:52:15 2006
New Revision: 37765

URL: http://svn.digium.com/view/asterisk?rev=37765&view=rev
Log:
Overflow bad

Modified:
    branches/1.2/formats/format_h263.c

Modified: branches/1.2/formats/format_h263.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/formats/format_h263.c?rev=37765&r1=37764&r2=37765&view=diff
==============================================================================
--- branches/1.2/formats/format_h263.c (original)
+++ branches/1.2/formats/format_h263.c Mon Jul 17 10:52:15 2006
@@ -161,6 +161,7 @@
 	len &= 0x7fff;
 	if (len > sizeof(s->h263)) {
 		ast_log(LOG_WARNING, "Length %d is too long\n", len);
+		return NULL;
 	}
 	if ((res = fread(s->h263, 1, len, s->f)) != len) {
 		if (res)



More information about the asterisk-commits mailing list