[vlc-devel] commit: Fixed potential infinite loop. (Laurent Aimar )
git version control
git at videolan.org
Sun Jul 6 22:48:04 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jul 6 21:18:38 2008 +0000| [113f18e9e27f12da2b8afae8643f62a7f879b04b]
Fixed potential infinite loop.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=113f18e9e27f12da2b8afae8643f62a7f879b04b
---
modules/demux/aiff.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/aiff.c b/modules/demux/aiff.c
index afc8ee9..0923574 100644
--- a/modules/demux/aiff.c
+++ b/modules/demux/aiff.c
@@ -85,7 +85,7 @@ static unsigned int GetF80BE( const uint8_t p[10] )
int i_exp = 30 - p[1];
unsigned int i_last = 0;
- while( i_exp-- )
+ while( i_exp-- > 0 )
{
i_last = i_mantissa;
i_mantissa >>= 1;
More information about the vlc-devel
mailing list