TStringBuilder does not grow properly
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
TStringBuilder.SetLength calls TStringBuilder.Grow, which can only double the capacity.
So for large lengths, the buffer will be too small
Additional information:
from the forum: https://forum.lazarus.freepascal.org/index.php/topic,47716.msg342329.html#msg342329
Mantis conversion info:
- Mantis ID: 36425
- OS: linux
- OS Build: opensuse
- Platform: amd64
- Fixed in version: 3.3.1
- Fixed in revision: 43678 (#0b9b0028)
- Target version: 3.2.0