[fpc-devel] Copy function and dynamic array
LacaK
lacak at zoznam.sk
Thu Mar 1 07:45:29 CET 2012
Sergei Gorelkin wrote / napísal(a):
> 29.02.2012 18:21, LacaK пишет:
>>> It cannot be fixed for Delphi mode only because a single copy of RTL
>>> is used for all compiler modes.
>>> The current situation where out of range 'length' parameter is
>>> adjusted but 'index' out of range
>>> raises exception is simply self-inconsistent. It is also
>>> inconsistent with behavior of Copy for
>>> strings.
>>> Adjusting index will neither cause any buffer overflows nor make
>>> code slower, so it should be fixed.
>> Will you do it or should I register bug in bug tracker?
>
> Please create a Mantis issue, so it won't be forgotten.
>
http://bugs.freepascal.org/view.php?id=21396
TIA
-Laco.
More information about the fpc-devel
mailing list