You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception IndexOutOfRangeException Source = Crc32Test Message = Index was outside the bounds of the array. TargetSite = UInt32[] InitializeTable(UInt32) Stack =
at this line: createTable[entry] = entry;
I added this check System.Diagnostics.Debug.Assert(entry >= 0 && entry < 256); // ANGELO if(entry >= 0 && entry < 256) // ANGELO createTable[entry] = entry;
but probably it would be better to add test and a break in the inner loop, where entry is modified,
Since I didn't know the algorithm and I didn't fully analized the code, I'm not sure about what is correct.
The text was updated successfully, but these errors were encountered:
The following exception is
Exception IndexOutOfRangeException Source = Crc32Test Message = Index was outside the bounds of the array. TargetSite = UInt32[] InitializeTable(UInt32) Stack =
at this line:
createTable[entry] = entry;
I added this check
System.Diagnostics.Debug.Assert(entry >= 0 && entry < 256); // ANGELO if(entry >= 0 && entry < 256) // ANGELO createTable[entry] = entry;
but probably it would be better to add test and a break in the inner loop, where entry is modified,
Since I didn't know the algorithm and I didn't fully analized the code, I'm not sure about what is correct.
The text was updated successfully, but these errors were encountered: