diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-09-01 19:20:04 -0700 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-09-01 19:20:04 -0700 |
commit | dd34ed9a0a12b101a0a2790fee9ad7c1038e460c (patch) | |
tree | b68ae55f3b810936774b32b2e5bd4a485e1038d7 /patches/ltrace/0.7.3/002-printf-p.patch | |
parent | 5b4aec54c7e2ef734bee7bc0d447f58fb4293dc4 (diff) | |
parent | d90a3c0ca5284e929f95f61b1c80b473233bc3cc (diff) | |
download | crosstool-ng-dd34ed9a0a12b101a0a2790fee9ad7c1038e460c.tar.gz crosstool-ng-dd34ed9a0a12b101a0a2790fee9ad7c1038e460c.tar.bz2 crosstool-ng-dd34ed9a0a12b101a0a2790fee9ad7c1038e460c.zip |
Merge pull request #157 from bhundven/sync_ltrace_patches
ltrace: Sync ltrace patches with debian
Diffstat (limited to 'patches/ltrace/0.7.3/002-printf-p.patch')
-rw-r--r-- | patches/ltrace/0.7.3/002-printf-p.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/ltrace/0.7.3/002-printf-p.patch b/patches/ltrace/0.7.3/002-printf-p.patch new file mode 100644 index 00000000..10631d9c --- /dev/null +++ b/patches/ltrace/0.7.3/002-printf-p.patch @@ -0,0 +1,18 @@ +From: Juan Cespedes <cespedes@debian.org> +Description: Prevent freeing static-alloc'd memory for %p and %n in printf +Bug-Debian: http://bugs.debian.org/614994 +Forwarded: http://lists.alioth.debian.org/pipermail/ltrace-devel/2013-September/000953.html +Last-Update: 2014-01-02 + + +--- ltrace-0.7.3.orig/printf.c ++++ ltrace-0.7.3/printf.c +@@ -168,7 +168,7 @@ form_next_param(struct param_enum *self, + type_init_pointer(infop, array, 1); + + } else if (format_type == ARGTYPE_POINTER) { +- type_init_pointer(infop, elt_info, 1); ++ type_init_pointer(infop, elt_info, 0); + + } else { + *infop = *type_get_simple(format_type); |