develooper Front page | perl.perl5.porters | Postings from October 2005

[patch@25854]vms.c rmsexpand and memmove fixes

Thread Next
John E. Malmberg
October 26, 2005 05:08
[patch@25854]vms.c rmsexpand and memmove fixes
Message ID:
In vms.c:

For platforms/versions that support it, a new do_mp_rmsexpand() that can 
support longer filenames.

Fix memory leaks in old do_mp_rmsexpand() when it gets an apparent UNIX 
format path that it can not translate.

Replace memcpy() with memmove() if there is a possibility of an 
overlapping range in the move to prevent a bad_thing[Tm] from happening.

Personal Opinion Only

* memcpy is allowed to do bad things on overlapping ranges, memmove must 
be used in these cases.

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