summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-05-10 12:42:01 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-05-10 12:42:01 +0200
commit3bd21c7c23abfa5516a2644d589e524214a331d2 (patch)
tree3a99a118ec47222c016d55b8f1db83c35403f3a5 /source
parentb0bfcf253e40e3f7927df8646cea3f7039200045 (diff)
downloadmupdf-3bd21c7c23abfa5516a2644d589e524214a331d2.tar.xz
Fix stack overflow in fz_vfprintf.
Thanks to Triet Lai.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/printf.c b/source/fitz/printf.c
index bc5ee898..e9d43dbb 100644
--- a/source/fitz/printf.c
+++ b/source/fitz/printf.c
@@ -279,7 +279,7 @@ fz_vfprintf(fz_context *ctx, FILE *file, const char *fmt, va_list old_args)
{
b = fz_malloc(ctx, l + 1);
va_copy(args, old_args);
- fz_vsnprintf(buffer, l + 1, fmt, args);
+ fz_vsnprintf(b, l + 1, fmt, args);
va_copy_end(args);
}