Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Fixes for array out of bounds #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions ePub3/ePub/package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bool PackageBase::Open(const string& path)
size_t loc = path.rfind("/");
if ( loc == std::string::npos )
{
_pathBase = '/';
_pathBase = "";
}
else
{
Expand Down Expand Up @@ -921,7 +921,7 @@ bool Package::Unpack()
// otherwise, we had a valid EPUB3 nav with empty (one-level) TOC
HandleError(EPUBError::OPFNoNavDocument);
}
else
else if (!tocNames.empty())
{
try
{
Expand Down