develooper Front page | perl.perl5.porters | Postings from April 2007

[PATCH] Bug in Hash::Util::FieldHash

Thread Previous | Thread Next
From:
Anno Siegel
Date:
April 20, 2007 17:11
Subject:
[PATCH] Bug in Hash::Util::FieldHash
Message ID:
DFEC2420-9301-40EC-A986-80D0290B2C8F@mailbox.tu-berlin.de
The recent discussion of Hash::Util::FieldHash has alerted me to
a bug in the current version.  It is possible to bypass garbage
collection in a field hash through innocent-looking actions like

     %fieldhash_target = %fieldhash_orig;

The target field hash will not be garbage-collected.  That's a
serious oversight, fortunately easily corrected:


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About