[asterisk-commits] branch 1.2 r18436 -
/branches/1.2/formats/format_jpeg.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Apr 7 15:07:39 MST 2006
Author: tilghman
Date: Fri Apr 7 17:07:38 2006
New Revision: 18436
URL: http://svn.digium.com/view/asterisk?rev=18436&view=rev
Log:
Bug 6913 - fix for possible buffer overflow
Modified:
branches/1.2/formats/format_jpeg.c
Modified: branches/1.2/formats/format_jpeg.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/formats/format_jpeg.c?rev=18436&r1=18435&r2=18436&view=diff
==============================================================================
--- branches/1.2/formats/format_jpeg.c (original)
+++ branches/1.2/formats/format_jpeg.c Fri Apr 7 17:07:38 2006
@@ -55,7 +55,7 @@
struct ast_frame fr;
int res;
char buf[65536];
- if (len > sizeof(buf)) {
+ if (len > sizeof(buf) || len < 0) {
ast_log(LOG_WARNING, "JPEG image too large to read\n");
return NULL;
}
More information about the asterisk-commits
mailing list