This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #126203) avoid potential leaks on quadmath_snprintf() failure
authorTony Cook <tony@develop-help.com>
Thu, 9 Feb 2017 00:19:45 +0000 (11:19 +1100)
committerTony Cook <tony@develop-help.com>
Thu, 9 Feb 2017 00:21:30 +0000 (11:21 +1100)
commitfb926b48abdbc7a4f69369fa58417a8620abe15c
tree9d3dd13ebe5558d6d2210a052aeeef9432dd73e5
parent61f45fbeb954464ff9f1342dbca22ddef0bce5b0
(perl #126203) avoid potential leaks on quadmath_snprintf() failure

In the unlikely case quadmath_snprintf() fails both sv_vcatpvfn_flags()
and my_snprintf() could leak the temp format string returned by
quadmath_format_single() if quadmath_format_single() had to rebuild
the format.

Getting quadmath_snprintf() to fail in this context seems impractical,
but future changes may make it happen, so clean up after ourselves.
sv.c
util.c