mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix a parsing bug in unarr backend that could lead to pageskips if non-image files are present in the archive.
This commit is contained in:
parent
1beb1beb75
commit
2432775755
@ -92,17 +92,8 @@ void CompressedArchive::getAllData(const QVector<quint32> & indexes, ExtractDele
|
||||
int i=0;
|
||||
while (i < indexes.count())
|
||||
{
|
||||
if (i==0)
|
||||
{
|
||||
ar_parse_entry_at(ar, offsets.at(indexes.at(0))); //set ar_entry to start of indexes
|
||||
}
|
||||
else
|
||||
{
|
||||
//TODO:
|
||||
//since we already have offset lists, we want to use ar_parse_entry_at here as well
|
||||
//speed impact?
|
||||
ar_parse_entry(ar);
|
||||
}
|
||||
//use the offset list so we generated so we're not getting any non-page files
|
||||
ar_parse_entry_at(ar, offsets.at(indexes.at(i))); //set ar_entry to start of indexes
|
||||
buffer.resize(ar_entry_get_size(ar));
|
||||
if (ar_entry_uncompress(ar, buffer.data(), buffer.size())) //did we extract it?
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user