develooper Front page | perl.perl5.porters | Postings from June 2019

Bug in av_store() Is this the right fix

From:
Karl Williamson
Date:
June 1, 2019 21:23
Subject:
Bug in av_store() Is this the right fix
Message ID:
efecfeb6-fa71-70e1-2491-cc20f90adb81@khwilliamson.com
In debugging a situation I discovered that the code called av_store() 
with an element that was already stored in that position.  av_store 
decrements the reference count, destroying what's about to be stored.

I know next to nothing about this.  Is the attached patch the right way 
to fix it?



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