Skip to content

Commit

Permalink
Fix over-read error near end of some CSOs.
Browse files Browse the repository at this point in the history
This was only a problem for larger-than-2048 block CSOs when reading them,
and would cause an error to be shown.
  • Loading branch information
unknownbrackets committed Apr 12, 2015
1 parent 6a6a0f8 commit 6d985c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/compress.h
Expand Up @@ -7,7 +7,7 @@

namespace maxcso {

static const char *VERSION = "1.4.5";
static const char *VERSION = "1.4.6";

struct Task;

Expand Down
2 changes: 2 additions & 0 deletions src/input.cpp
Expand Up @@ -237,6 +237,7 @@ void Input::ReadSector() {

if (!compressedDeflate && !compressedLZ4 && offset != 0) {
pos += offset;
len -= offset;
offset = 0;
}
}
Expand All @@ -251,6 +252,7 @@ void Input::ReadSector() {

if (!compressedDeflate && offset != 0) {
pos += offset;
len -= offset;
offset = 0;
}
}
Expand Down

0 comments on commit 6d985c0

Please sign in to comment.