Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EncryptedReader #84

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
No need to search for koly block in the last 511 bytes.
  • Loading branch information
jief committed Jul 21, 2018
commit b942a900a0db2fd84fe60262a72cf3f8af6e445a
2 changes: 1 addition & 1 deletion src/DMGDisk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 21,7 @@ static uint64_t findKolyBlock(std::shared_ptr<Reader> reader)

char buf[1024];
reader->read(buf, sizeof(buf), reader->length() - 1024);
for (uint32_t i = 0 ; i < 1020 ; i ) {
for (uint32_t i = 0 ; i < 1024 - sizeof(UDIFResourceFile) ; i ) {
if (strcmp("koly", buf i) == 0)
return reader->length() - 1024 i;
}
Expand Down