Hacker News new | ask | show | jobs
by andreidd 359 days ago
Why is Delphi/Object Pascal an MSL?
2 comments

Probably because it has counted byte strings and does bounds checks?
Why shouldn't it be?
What's stopping you from UAF or OOB array access in Delphi?
Delphi arrays are bounds checked. UAF is mitigated by having ref counted strings and such. Not fully safe but much safer than C and C++.
Usually a runtime or compile time check. At least for OOB in Ada.

https://www.jdoodle.com/ia/1IgW