From 5eea78fa8109827b44c8316552e43c0765bc134f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 26 Sep 2006 17:48:24 +0000 Subject: Fix an off by one identified by Coverity Scan, CID 136. CVS patchset: 8293 CVS date: 2006/09/26 17:48:24 --- src/libfaad/syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libfaad/syntax.c b/src/libfaad/syntax.c index 83ff8ccff..a32988177 100644 --- a/src/libfaad/syntax.c +++ b/src/libfaad/syntax.c @@ -22,7 +22,7 @@ ** Commercial non-GPL licensing of this software is possible. ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. ** -** $Id: syntax.c,v 1.9 2005/10/29 23:57:07 tmmm Exp $ +** $Id: syntax.c,v 1.10 2006/09/26 17:48:24 dgp85 Exp $ **/ /* @@ -323,7 +323,7 @@ static void decode_sce_lfe(NeAACDecHandle hDecoder, uint8_t channels = hDecoder->fr_channels; uint8_t tag = 0; - if (channels+1 > MAX_CHANNELS) + if (channels+1 >= MAX_CHANNELS) { hInfo->error = 12; return; -- cgit v1.2.3