diff options
author | Alexey Neyman <stilor@att.net> | 2017-07-13 07:38:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 07:38:03 (GMT) |
commit | 45c5bb0f484cba724be2c6105801dcce9a1a82d9 (patch) | |
tree | 8fd1c8eaa2ef203009d72b6ca6348611dcc5ee1c /packages/ltrace/0.7.3/002-printf-p.patch | |
parent | 8f8e131d566af1f577d8fb6e62e6f121b7955472 (diff) | |
parent | b32fcf7c1eea890a2bd3f88487f818ba241aabb1 (diff) |
Merge pull request #767 from stilor/packages
Packages
Diffstat (limited to 'packages/ltrace/0.7.3/002-printf-p.patch')
-rw-r--r-- | packages/ltrace/0.7.3/002-printf-p.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/ltrace/0.7.3/002-printf-p.patch b/packages/ltrace/0.7.3/002-printf-p.patch new file mode 100644 index 0000000..10631d9 --- /dev/null +++ b/packages/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); |