rardecode icon indicating copy to clipboard operation
rardecode copied to clipboard

panic in decodeSymbol2

Open secDre4mer opened this issue 3 years ago • 3 comments

When unpacking Cscan(.net_2x_3x).exe from https://github.com/k8gege/K8tools/blob/master/K8Cscan5.4_20191101.rar, rardecode panics in decodeSymbol2, line 805:

for m.charMask[states[i].sym] == m.escCount {

Apparently i equals len(states) (both 22), causing the issue.

If there is any further information that you require, please let me know.

secDre4mer avatar Jan 18 '22 11:01 secDre4mer

If I use the experimental branch, It no longer panic's but it still has corrupt ppm data errors. Are the archive files not valid/corrupt?

nwaples avatar Feb 20 '22 00:02 nwaples

Possibly - I haven't created them and don't know. They're encrypted, might that cause the errors?

Not panicing is definitely a good improvement for stability, thanks for that.

secDre4mer avatar Feb 21 '22 15:02 secDre4mer

Yes, that would happen if they are encrypted.

I copied the development version of ppm_model.go to main branch and tagged a new version. It seem to at least not panic for that file.

nwaples avatar Mar 06 '22 03:03 nwaples