# HG changeset patch # User rbultje # Date 1237663149 0 # Node ID 6fff7e0861fc3129050d2ca93cf7d5b234385bb7 # Parent 667428b99cc35a89433890114dffb88ae5a17d62 Don't allow to sync on packets of zero-size length, since these are never valid. See "[PATCH] rmdec.c: prevent zero-length packets" thread. diff -r 667428b99cc3 -r 6fff7e0861fc rmdec.c --- a/rmdec.c Sat Mar 21 19:18:07 2009 +0000 +++ b/rmdec.c Sat Mar 21 19:19:09 2009 +0000 @@ -534,7 +534,7 @@ goto skip; } - if(state > (unsigned)0xFFFF || state < 12) + if(state > (unsigned)0xFFFF || state <= 12) continue; len=state - 12; state= 0xFFFFFFFF;