Skip to content

Commit 5803899

Browse files
Fixed RLE decompression bug in CCB Extractor
Fixed bug in RLE decompression function in CCB Extractor where extracting RLE-encoded files would sometimes cause a SEGFAULT.
1 parent 6dcee9a commit 5803899

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CCBExtractor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ void RLEDecode(string filename, unsigned char* compressedData, unsigned char* un
247247
cout << "Decompressing " << filename << endl;
248248

249249
pak_buffer = compressedData;
250+
pak_len = compressedSize;
250251

251252
header = compressionType;
252253
if (header != CMD_CODE_30) {

0 commit comments

Comments
 (0)