Recent

Author Topic: Memory Safety and Object Pascal. Very good article  (Read 646 times)

BlueIcaro

  • Hero Member
  • *****
  • Posts: 813
    • Blog personal
Memory Safety and Object Pascal. Very good article
« on: January 20, 2025, 04:07:49 pm »
Hello I found this article which talks about the security of pascal, and other issues

https://chapmanworld.com/memory-safety-and-object-pascal/

/BlueIcaro

Thaddy

  • Hero Member
  • *****
  • Posts: 16520
  • Kallstadt seems a good place to evict Trump to.
Re: Memory Safety and Object Pascal. Very good article
« Reply #1 on: January 20, 2025, 04:19:13 pm »
That article was referenced before, I think. At least its subject.
Craig is an old hand, but his worries about fpc/lazarus are unfounded.
But I am sure they don't want the Trumps back...

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1317
Re: Memory Safety and Object Pascal. Very good article
« Reply #2 on: January 22, 2025, 01:17:32 am »
Has anyone ever met him or seen his pascal projects?
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

Handoko

  • Hero Member
  • *****
  • Posts: 5387
  • My goal: build my own game engine using Lazarus
Re: Memory Safety and Object Pascal. Very good article
« Reply #3 on: January 22, 2025, 02:16:28 am »
I do not know him personally. But a quick search on the web showed he was active on Delphi/Embarcadero communities. And these are some of his codes:
https://github.com/Embarcadero/Blogs/tree/master/Craig%20Chapman/RADServerSample/src/delphi

440bx

  • Hero Member
  • *****
  • Posts: 4994
Re: Memory Safety and Object Pascal. Very good article
« Reply #4 on: January 22, 2025, 03:06:08 am »
I don't see how FPC and/or Delphi are any safer than C and C++.

All four of those languages allow unchecked pointer arithmetic, that's as unsafe as unsafe gets.

I think the article is rather biased towards Pascal and negatively biased towards C/C++.

That said, FPC and Delphi do offer some facilities that, in some cases, mitigate the need to use pointers but, whenever performance is needed, pointer arithmetic delivers it (along with some risks ;) )

Even COBOL85 which didn't support pointers isn't completely memory safe, yet in spite of that, it was/is still possible to inadvertently overwrite memory blocks. 
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018