comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Canal+ crash
Date: Mon, 22 Jul 2024 08:36:08 +0200	[thread overview]
Message-ID: <v7kuka$hgr8$1@dont-email.me> (raw)
In-Reply-To: <v7k01a$8pms$11@dont-email.me>

Le 21/07/2024 à 23:53, Lawrence D'Oliveiro a écrit :
> On Sun, 21 Jul 2024 11:10:06 +0200, J-P. Rosen wrote:
> 
>> Le 21/07/2024 à 10:00, Niklas Holsti a écrit :
>>
>>> But certainly, most attacks on SW have used functional bugs such as
>>> buffer overflows.
>>
>> A problem that has been solved since 1983, and even before (Pascal had
>> bounds checking). Sigh...
> 
> Pascal had no checking for memory leaks or double-frees.
> 
> Rust certainly seems to be a next-generation solution to these sorts of
> memory problems.

We were talking about bounds checking, that Pascal had.
Nowadays, you should not use pointers directly, but containers. Pointers 
are necessary only for writing containers, thanks to Ada's features not 
found in other languages, like allocating dynamically sized arrays on 
the stack.

Note that in Rust, containers are written using unsafe Rust, therefore 
Rust is not better than Ada on that aspect, it is a complicated solution 
to a problem that Ada doesn't have.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
https://www.adalog.fr https://www.adacontrol.fr

  reply	other threads:[~2024-07-22  6:36 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-19 21:41 Canal+ crash Nicolas Paul Colin de Glocester
2024-07-20  7:23 ` Dmitry A. Kazakov
2024-07-20  7:43   ` Lawrence D'Oliveiro
2024-07-20  9:08     ` Dmitry A. Kazakov
2024-07-21  1:04       ` Lawrence D'Oliveiro
2024-07-21  7:22         ` Dmitry A. Kazakov
2024-07-21  8:00           ` Niklas Holsti
2024-07-21  9:10             ` J-P. Rosen
2024-07-21  9:34               ` Dmitry A. Kazakov
2024-07-21 11:11                 ` Nicolas Paul Colin de Glocester
2024-07-21 21:53               ` Lawrence D'Oliveiro
2024-07-22  6:36                 ` J-P. Rosen [this message]
2024-07-23  1:48                   ` Lawrence D'Oliveiro
2024-07-21  9:19             ` Dmitry A. Kazakov
2024-07-21 11:31               ` Niklas Holsti
2024-07-21 16:49                 ` Dmitry A. Kazakov
2024-07-21 21:55                   ` Lawrence D'Oliveiro
2024-07-21 21:52           ` Lawrence D'Oliveiro
2024-07-22  7:16             ` Dmitry A. Kazakov
2024-07-23  1:49               ` Lawrence D'Oliveiro
2024-07-23  7:06                 ` Dmitry A. Kazakov
2024-07-23  8:36                   ` Lawrence D'Oliveiro
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox