[MN-dev] [mndiff]: r105 - trunk/noe/mina.c
michael
subversion at mplayerhq.hu
Wed Oct 22 19:25:10 CEST 2008
Author: michael
Date: Wed Oct 22 19:25:10 2008
New Revision: 105
Log:
Ensure that no invalid codes are written.
Modified:
trunk/noe/mina.c
Modified: trunk/noe/mina.c
==============================================================================
--- trunk/noe/mina.c (original)
+++ trunk/noe/mina.c Wed Oct 22 19:25:10 2008
@@ -284,6 +284,7 @@ printf("%d %d %d\n", n, k, n-k);
}
for(j= decode ? 0 : k; j<n; j++){
+ assert(code[j] <= 0xFFFF);
buffer[2*(j*buffersize + i2 - i) ]= code[j]>>8;
buffer[2*(j*buffersize + i2 - i)+1]= code[j];
}
More information about the Mndiff-dev
mailing list