summaryrefslogtreecommitdiff
path: root/t/op/stat.t
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-13 15:50:51 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-13 21:24:54 -0800
commit97c226b87fecccdf4a4af5defd1836198a9666e5 (patch)
treef603e15adbff722a3289a39680687dfb3fd7636d /t/op/stat.t
parentde61bf2ac7b4130886e0d3b93c1f0e22b7dfaec3 (diff)
downloadperl-97c226b87fecccdf4a4af5defd1836198a9666e5.tar.gz
Set PL_statgv to null when freed or coerced
If PL_statgv is not set to null when freed, that same SV could be reused for another GV, in which case -T _ will then use another handle unrelated to the previous stat. Similarly, if PL_statgv points to a fake glob that gets coerced into a non-glob before it is freed, it will not follow the code path in sv_free that sets PL_statgv to null. Furthermore, if it becomes a GV again, it could be a completely different filehandle, unrelated to the previous stat.
Diffstat (limited to 't/op/stat.t')
0 files changed, 0 insertions, 0 deletions