View Single Post
Old 02-11-2015, 06:10 AM   #1
tigran
Zealot
tigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austentigran has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
bug in ebook-viewer: the file is modified

I found a very serious bug in the ebook-viewer utility --- after running it on an epub the file is modified --- even the file size changes. Obviously, this should NOT happen because a viewer is not supposed to change anything inside the file.

Interestingly, it only happens if the file's permissions allow write. I.e. if I run "chmod 0400 file.epub" before executing "ebook-viewer file.epub" then the file is not modified.

The version of calibre I am using is 2.18 on Linux x86_64 architecture.

Please confirm that this can only happen with ebook-viewer, but not ebook-meta. I can simply remove ebook-viewer from my system as unsafe, but ebook-meta is a mission-critical utility as I am relying on it for metadata extraction for most formats (for some formats I wrote a better metadata and cover extractor myself, e.g. for djvu and fb2)
tigran is offline   Reply With Quote