]> git.ipfire.org Git - thirdparty/tar.git/commit
Avoid unlikely crash when xasprintf returns 0
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jul 2022 23:18:03 +0000 (16:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 25 Jul 2022 16:44:00 +0000 (09:44 -0700)
commitfffc6149fd355c68c8ffb060c45f5ae5713869df
tree17934ab9dc9d53e67f5b3fa4634159efcaedbabb
parent8ed180b03ccba9c0b056f1e6b24642f89782bfd3
Avoid unlikely crash when xasprintf returns 0

Problem caught by GCC 12.
* src/tar.c (easprintf): New static function, which never returns
a null pointer.  All uses of xasprintf replaced by uses of this
function.
src/tar.c