Panic: Slice bounds out of range when indexing

yea that cast to int is suspect but I assume you are running on a 64bit machine? If so the int should be 64bits which obviously fully holds the uint32 read from the byte slice.

1 Like