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

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

Thread Next
From:
John E. Malmberg
Date:
October 26, 2005 05:08
Subject:
[patch@25854]vms.c rmsexpand and memmove fixes
Message ID:
435F71A5.6030809@qsl.net
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.

-John
wb8tyw@qsl.net
Personal Opinion Only

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

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