mirror of
https://github.com/tsulej/GenerateMe.git
synced 2026-06-16 04:25:42 +02:00
decompress will not fail when cut few bytes
This commit is contained in:
@@ -70,7 +70,7 @@ void setup() {
|
||||
c.clist.clear();
|
||||
|
||||
int blen = 0;
|
||||
for(int iter=0;iter<b.length;iter+=(2+type)) {
|
||||
for(int iter=0;iter<b.length-(1+type);iter+=(2+type)) {
|
||||
int d = (b[iter] & 0xff) | ( type == LARGE ? (b[iter+1]&0xff)<<8 : 0 );
|
||||
int offset = (d & dict);
|
||||
int len = (d >> dictsize) & ahead;
|
||||
|
||||
Reference in New Issue
Block a user