summaryrefslogtreecommitdiff
path: root/fitz/stm_read.c
AgeCommit message (Collapse)Author
2011-12-19More Memory squeezing fixesRobin Watts
2011-12-15More Memsqueezing fixes.Robin Watts
2011-12-08Throw exceptions for read errors.Tor Andersson
2011-11-15Merge branch 'master' into contextRobin Watts
Mostly redoing the xps_context to xps_document change and adding contexts to newly written code. Conflicts: apps/pdfapp.c apps/pdfapp.h apps/x11_main.c apps/xpsdraw.c draw/draw_device.c draw/draw_scale.c fitz/base_object.c fitz/fitz.h pdf/mupdf.h pdf/pdf_interpret.c pdf/pdf_outline.c pdf/pdf_page.c xps/muxps.h xps/xps_doc.c xps/xps_xml.c
2011-11-01Avoid pointer arithmetic in fz_seek.Tor Andersson
The pointer arithmetic could over/underflow, causing the range test to pass even when it shouldn't (due to compiler oddities).
2011-10-04Move to exception handling rather than error passing throughout.Robin Watts
This frees us from passing errors back everywhere, and hence enables us to pass results back as return values. Rather than having to explicitly check for errors everywhere and bubble them, we now allow exception handling to do the work for us; the downside to this is that we no longer emit as much debugging information as we did before (though this could be put back in). For now, the debugging information we have lost has been retained in comments with 'RJW:' at the start. This code needs fuller testing, but is being committed as a work in progress.
2011-09-21Add warning context.Tor Andersson
2011-09-15Add context to mupdf.Robin Watts
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
2011-09-14Initial import of exception handling codeRobin Watts
Import exception handling code from WSS, modified to fit into the fitz world. With this code we have 'real' fz_try/fz_catch/fz_rethrow functions, handling a fz_except type. We therefore rename the existing fz_throw/ fz_catch/fz_rethrow to be fz_error_make/fz_error_handle/fz_error_note. We don't actually use fz_try/fz_catch/fz_rethrow yet...
2011-04-07Optimize file seeks that can be done within the buffered data.Tor Andersson
2011-04-04Le Roi est mort, vive le Roi!Tor Andersson
The run-together words are dead! Long live the underscores! The postscript inspired naming convention of using all run-together words has served us well, but it is now time for more readable code. In this commit I have also added the sed script, rename.sed, that I used to convert the source. Use it on your patches and application code.
2011-03-10Fix integer overflow in compression bomb multiplication by using a division ↵Tor Andersson
instead.
2011-03-06Add explicit EOF testing functions.Tor Andersson
2011-03-02Use buffering for small reads.Tor Andersson
2011-02-04Tweak the compression bomb detection.Tor Andersson
2011-02-04Don't reset stream wp pointer at end of file, since that will clobber ↵Tor Andersson
streams opened with openbuffer.
2011-01-02Relaxed limits when detecting compression bombs.Sebastian Rasmussen
2010-11-12Clean up memory when returning an error.Tor Andersson
2010-11-12Detect flate/runlength decompression bombs.Tor Andersson
2010-08-02When seeking relative to the current position in a stream object, take ↵Sebastian Rasmussen
number of bytes read into buffer into consideration.
2010-07-30Make an educated guess at the stream length by looking at the filters used ↵Tor Andersson
in pdf_loadstream.
2010-07-29Use chained reader like interface for filters instead of process interface.Tor Andersson
2010-07-17Minor edits of multi-line comments.Tor Andersson
2010-07-13Fix clang warnings.Tor Andersson
2010-07-09Rearrange and merge some files in the fitz directory.Tor Andersson
2010-07-05Use NDEBUG rather than DEBUG to test build at compile time.Tor Andersson
2010-05-26Optimize lexer by using unreadbyte and switches rather than chained ifs.Robin Watts
2009-12-03Consolidate include lines to a single fitz.h.Tor Andersson
2009-11-20Malloc cannot return null. Clean up streams and filters.Tor Andersson
2009-03-11Remove fz_outofmem constant.Tor Andersson
2009-03-11Change fz_error* struct into an integer error type fz_error.Tor Andersson
2009-03-05Remove unused and mostly untested pdf updating and writing code.Tor Andersson
2009-02-28Merge and move header files into the source directories.Tor Andersson
2009-02-28Moved Fitz files into one directory.Tor Andersson