Kiran mathew koshy 1993 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/78374
Change subject: Fixed a bug which caused a segmentation fault if the url passed
to zimDump was not found in the zim file.
......................................................................
Fixed a bug which caused a segmentation fault if the url passed to zimDump was
not found in the zim file.
Change-Id: I490c218bce0bf85196cda35d4779d005f2df6699
---
M zimlib/src/tools/zimDump.cpp
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/openzim refs/changes/74/78374/1
diff --git a/zimlib/src/tools/zimDump.cpp b/zimlib/src/tools/zimDump.cpp
index e7f6b3a..d4a2947 100644
--- a/zimlib/src/tools/zimDump.cpp
+++ b/zimlib/src/tools/zimDump.cpp
@@ -141,7 +141,10 @@
void ZimDumper::dumpArticle()
{
log_trace("dump article");
- std::cout << pos->getData() << std::flush;
+ if(pos!=file.end())
+ {
+ std::cout << pos->getData() << std::flush;
+ }
}
void ZimDumper::dumpIndex()
--
To view, visit https://gerrit.wikimedia.org/r/78374
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I490c218bce0bf85196cda35d4779d005f2df6699
Gerrit-PatchSet: 1
Gerrit-Project: openzim
Gerrit-Branch: master
Gerrit-Owner: Kiran mathew koshy 1993 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits