From 9b1f710b8e4ade81fd57da97c460257a9b98c953 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 16 May 2020 14:09:21 +0000 Subject: bugfix: el_substitute could incorrectly share stralloc pointers --- AUTHORS | 1 + NEWS | 6 ++++++ doc/index.html | 2 +- doc/upgrade.html | 6 ++++++ package/info | 2 +- src/libexecline/el_substitute.c | 2 +- 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index c1cec1a..7ffc516 100644 --- a/AUTHORS +++ b/AUTHORS @@ -23,3 +23,4 @@ Thanks to: Danilo Spinella Éric Vidal + Profpatsch diff --git a/NEWS b/NEWS index 353fd51..d966ede 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ Changelog for execline. +In 2.6.0.2 +---------- + + - Bugfixes. + + In 2.6.0.1 ---------- diff --git a/doc/index.html b/doc/index.html index bc02088..0b41cea 100644 --- a/doc/index.html +++ b/doc/index.html @@ -66,7 +66,7 @@ library.

Download

    -
  • The current released version of execline is 2.6.0.1.
  • +
  • The current released version of execline is 2.6.0.2.
  • Alternatively, you can checkout a copy of the execline git repository: diff --git a/doc/upgrade.html b/doc/upgrade.html index 5cd11cc..e1ae3a3 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -18,6 +18,12 @@

    What has changed in execline

    +

    in 2.6.0.2

    + +
      +
    • No functional changes
    • +
    +

    in 2.6.0.1

      diff --git a/package/info b/package/info index 9c34156..22fb0b7 100644 --- a/package/info +++ b/package/info @@ -1,4 +1,4 @@ package=execline -version=2.6.0.1 +version=2.6.0.2 category=admin package_macro_name=EXECLINE diff --git a/src/libexecline/el_substitute.c b/src/libexecline/el_substitute.c index 5eff6d3..9a337fe 100644 --- a/src/libexecline/el_substitute.c +++ b/src/libexecline/el_substitute.c @@ -152,7 +152,7 @@ int el_substitute (stralloc *dst, char const *src, size_t len, char const *vars, int nc = 0 ; int wasnull = !dst->s ; - info.dst = *dst ; + if (!stralloc_copy(&info.dst, dst)) return -1 ; info.values = values ; while (i < len) -- cgit v1.2.3