0e726fde35
* This is a bugfix release: dozens of bugs have been found and exterminated! * A typo resulting in a potential stack overflow that could corrupt files when saving edits to a PDF has been fixed. Another bug which caused a significant slowdown has also been fixed. OBS-URL: https://build.opensuse.org/package/show/Publishing/mupdf?expand=0&rev=19
14 lines
630 B
Diff
14 lines
630 B
Diff
Index: mupdf-1.5-source/source/fitz/load-jpx.c
|
|
===================================================================
|
|
--- mupdf-1.5-source.orig/source/fitz/load-jpx.c
|
|
+++ mupdf-1.5-source/source/fitz/load-jpx.c
|
|
@@ -116,7 +116,7 @@ fz_load_jpx(fz_context *ctx, unsigned ch
|
|
opj_stream_set_read_function(stream, fz_opj_stream_read);
|
|
opj_stream_set_skip_function(stream, fz_opj_stream_skip);
|
|
opj_stream_set_seek_function(stream, fz_opj_stream_seek);
|
|
- opj_stream_set_user_data(stream, &sb);
|
|
+ opj_stream_set_user_data(stream, &sb, NULL);
|
|
/* Set the length to avoid an assert */
|
|
opj_stream_set_user_data_length(stream, size);
|
|
|