Stop using alloca

* gnulib.modules: Remove alloca.
* src/create.c (dump_file0): Return address of any allocated
storage.  Caller changed to free it.  Use xmalloc instead
of alloca, to obtain this storage.
* src/list.c (from_header): Use quote_mem instead of quote,
removing the need to use alloca.
This commit is contained in:
Paul Eggert
2023-08-02 08:41:12 -07:00
parent 9a30bb2674
commit 8e5483577d
4 changed files with 32 additions and 31 deletions

6
NEWS
View File

@@ -1,4 +1,4 @@
GNU tar NEWS - User visible changes. 2023-08-01
GNU tar NEWS - User visible changes. 2023-08-02
Please send GNU tar bug reports to <bug-tar@gnu.org>
version TBD
@@ -24,6 +24,10 @@ as argument to --mtime option (see GNU tar manual, chapter 4
Defines output format for the COMMAND set by the above option. If
used, command output will be parsed using strptime(3).
* Bug fixes
** tar no longer uses alloca, fixing an unlikely stack overflow.
version 1.35 - Sergey Poznyakoff, 2023-07-18