mupdf-1.10a-null-pointer.patch 737 B

12345678910111213141516171819202122
  1. From: Sebastian Rasmussen <sebras@gmail.com>
  2. Date: Sat, 4 Feb 2017 05:21:20 +0000 (+0100)
  3. Subject: Bug 697514: Write SVG output to stdout if no output specified.
  4. X-Git-Url: http://git.ghostscript.com/?p=mupdf.git;a=commitdiff_plain;h=40ac85bfb676bb4373bda4b18f9fd90268c9f1e9
  5. Bug 697514: Write SVG output to stdout if no output specified.
  6. ---
  7. diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
  8. index 95b3440..720e7ff 100644
  9. --- a/source/tools/mudraw.c
  10. +++ b/source/tools/mudraw.c
  11. @@ -578,7 +578,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in
  12. char buf[512];
  13. fz_output *out;
  14. - if (!strcmp(output, "-"))
  15. + if (!output || !strcmp(output, "-"))
  16. out = fz_stdout(ctx);
  17. else
  18. {