Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-08-29 | Handle missing clear codes in LZW. | Sebastian Rasmussen | |
Previously if the lookup table was full and no clear code appeared the decoder would try to add more entries to the table. However the table is of fixed size (4096 entries) so it would write outside the table. Fix this by detecting when the lookup table is full and a clear code ought to appear. At this point the decoder will now treat and process any code as a clear code. For valid documents this will never happen, for invalid documents this means risking that succeeding codes may be misinterpreted and that the decoded data will be incorrect, this case should be handled by the consumer of the data though. Fixes bug 693306. | |||
2012-03-06 | Split fitz.h/mupdf.h into internal/external headers. | Robin Watts | |
Attempt to separate public API from internal functions. | |||
2012-01-27 | Remove dependency on fz_obj from the filter creation parameters. | Tor Andersson | |
2011-12-17 | More memsqueezing fixes; stream creation. | Robin Watts | |
2011-12-17 | Change stream 'close' functions to facilitate error cleanup. | Robin Watts | |
Rather than passing a stream to a close function, just pass context and state - that's all that is required. This enables us to call close to cleanup neatly if the stream fails to allocate. | |||
2011-12-16 | Add fz_malloc_struct, and make code use it. | Robin Watts | |
The new fz_malloc_struct(A,B) macro allocates sizeof(B) bytes using fz_malloc, and then passes the resultant pointer to Memento_label to label it with "B". This costs nothing in non-memento builds, but gives much nicer listings of leaked blocks when memento is enabled. | |||
2011-12-08 | Stylistic changes when testing pointer values for NULL. | Tor Andersson | |
Also: use 'cannot' instead of 'failed to' in error messages. | |||
2011-09-21 | Add warning context. | Tor Andersson | |
2011-09-21 | Don't thread ctx through safe fz_obj functions. | Tor Andersson | |
2011-09-15 | Add 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-04-04 | Le 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-06 | Add explicit EOF testing functions. | Tor Andersson | |
2011-02-23 | Use readbits function in LZW decoder. | Tor Andersson | |
2011-02-23 | Stylistic cleanups in LZW decoder: copy state variables in locals. | Tor Andersson | |
2010-08-11 | Unstuff extra bytes read when the filters are closed instead of only when ↵ | Tor Andersson | |
EOD is encountered. | |||
2010-08-02 | Use 'while (rp < wp)' idiom for filter output buffering state. | Tor Andersson | |
2010-08-02 | Fix bugs where pointer to remaining data in filters was not updated, also ↵ | Sebastian Rasmussen | |
make all occurances of the code follow a common idiom. | |||
2010-07-29 | Use chained reader like interface for filters instead of process interface. | Tor Andersson | |
2010-07-17 | Remove all trailing whitespace. | Tor Andersson | |
2009-12-03 | Consolidate include lines to a single fitz.h. | Tor Andersson | |
2009-11-20 | Malloc cannot return null. Clean up streams and filters. | Tor Andersson | |
2009-11-07 | Correct initial value of earlychange flag in LZW decoder. | Sebastian Rasmussen | |
2009-11-05 | Fix clear and bit count change-over bugs in lzw decoder. | Tor Andersson | |
2009-03-11 | Remove fz_outofmem constant. | Tor Andersson | |
2009-03-11 | Change fz_error* struct into an integer error type fz_error. | Tor Andersson | |
2009-02-28 | Merge and move header files into the source directories. | Tor Andersson | |
2009-02-28 | Moved Fitz files into one directory. | Tor Andersson | |