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

[PATCH] VMS %ENV fix (follow-up to 18852)

Thread Next
Craig A. Berry
April 2, 2003 16:02
[PATCH] VMS %ENV fix (follow-up to 18852)
Message ID:
In adding the ability to handle very long %ENV values in change #18852, I 
failed to distinguish adequately between the uses of logical names to 
support the %ENV hash and other internal uses of logical names (such as 
manipulating file specs in VMSish ways).  This sometimes brings a 
fixed-length buffer up against a value that is too long for it, causing 
stack corruption and crashes.  The attached patch fixes that by adding a 
flag to the logical name translation infrastructure in vms.c so that only 
Perl_my_getenv and Perl_my_getenv_len will attempt to take advantage of the 
longer values.  The internal function my_trnlnm may once again be safely 
used as it always has for logical name translations not related to the 
support of %ENV.

This should be applied to both 5.8.1 and bleadperl.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About