Re: VMS

Liste des GroupesRevenir à ol misc 
Sujet : Re: VMS
De : spamtrap42 (at) *nospam* jacob21819.net (Robert Riches)
Groupes : comp.os.linux.misc
Date : 21. Jun 2025, 04:43:56
Autres entêtes
Organisation : none-at-all
Message-ID : <slrn105cajs.4vj.spamtrap42@one.localnet>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : slrn/1.0.3 (Linux)
On 2025-06-21, rbowman <bowman@montana.com> wrote:
On Fri, 20 Jun 2025 23:07:20 -0000 (UTC), Rich wrote:
>
Very likely, but the idea was to protect the typical programmer from
their own common mistakes (of not carefully checking error return codes
or buffer lengths, etc.).  I.e. the typical 9-5 contract programmer, not
the Dennis Ritchie's of the world.
>
I'm paranoid enough that I check the return of malloc and try to log the
problem even though I'm probably screwed at that point. It has pointed out
errors for calloc if you've manged to come up with a negative size.
>
I have worked with programmers that assumed nothing bad would ever happen.
Sadly, some had years of experience.

Some years ago, I heard of a bug related to use of malloc.  The
code had _intended_ to dynamically allocate storage for a string
and the terminating null byte.  It was _intended_ to do this:

        dest = malloc(strlen(src)+1);

Instead, a paren was misplaced:

        dest = malloc(strlen(src))+1;

IIUC, the next line copied the src string into the newly-
allocated destination.

Those who had worked on that project longer said the bug had been
latent in the code for several years, most likely with alignment
padding masking the bug from being discovered.  Curiously, the
bug made itself manifest immediately upon changing from a 32-bit
build environment to a 64-bit build environment.

--
Robert Riches
spamtrap42@jacob21819.net
(Yes, that is one of my email addresses.)

Date Sujet#  Auteur
14 Jun 25 * Re: VMS118Bobbie Sellers
14 Jun 25 +* Re: VMS109Andreas Eder
15 Jun 25 i`* Re: VMS108Lawrence D'Oliveiro
15 Jun 25 i +* Re: VMS11rbowman
15 Jun 25 i i`* Re: VMS10c186282
15 Jun 25 i i +* Re: VMS5The Natural Philosopher
16 Jun 25 i i i`* Re: VMS4c186282
18 Jun 25 i i i `* Re: VMS3c186282
18 Jun 25 i i i  `* Re: VMS2rbowman
18 Jun 25 i i i   `- Re: VMS1c186282
15 Jun 25 i i `* Re: VMS4rbowman
16 Jun 25 i i  `* Re: VMS3c186282
16 Jun 25 i i   `* Re: VMS2rbowman
16 Jun 25 i i    `- Re: VMS1c186282
15 Jun 25 i `* Re: VMS96c186282
18 Jun 25 i  `* Re: VMS95candycanearter07
18 Jun 25 i   `* Re: VMS94c186282
18 Jun 25 i    +* Re: VMS3candycanearter07
18 Jun 25 i    i`* Re: VMS2Rich
19 Jun 25 i    i `- Re: VMS1rbowman
19 Jun 25 i    `* Re: VMS90Richard Kettlewell
20 Jun 25 i     +* Re: VMS87c186282
20 Jun 25 i     i+* Re: VMS78Richard Kettlewell
20 Jun 25 i     ii+* Re: VMS75The Natural Philosopher
20 Jun 25 i     iii+- Re: VMS1Richard Kettlewell
20 Jun 25 i     iii+* Re: VMS72Rich
20 Jun 25 i     iiii+* Re: VMS66The Natural Philosopher
21 Jun 25 i     iiiii`* Re: VMS65Rich
21 Jun 25 i     iiiii +- Re: VMS1The Natural Philosopher
21 Jun 25 i     iiiii `* Re: VMS63rbowman
21 Jun 25 i     iiiii  `* Re: VMS62Robert Riches
21 Jun 25 i     iiiii   +- Re: VMS1c186282
21 Jun 25 i     iiiii   +- Re: VMS1rbowman
22 Jun 25 i     iiiii   `* Re: VMS59candycanearter07
22 Jun 25 i     iiiii    +* Re: VMS3Richard Kettlewell
22 Jun 25 i     iiiii    i`* Re: VMS2The Natural Philosopher
23 Jun 25 i     iiiii    i `- Re: VMS1c186282
22 Jun 25 i     iiiii    +* Re: VMS3rbowman
23 Jun 25 i     iiiii    i`* Re: VMS2candycanearter07
23 Jun 25 i     iiiii    i `- Re: VMS1rbowman
24 Jun 25 i     iiiii    +* Re: VMS51Robert Riches
24 Jun 25 i     iiiii    i+* Re: VMS6rbowman
24 Jun 25 i     iiiii    ii`* Re: VMS5rbowman
24 Jun 25 i     iiiii    ii `* Re: VMS4The Natural Philosopher
25 Jun 25 i     iiiii    ii  `* Re: VMS3c186282
25 Jun 25 i     iiiii    ii   `* Re: VMS2The Natural Philosopher
25 Jun 25 i     iiiii    ii    `- Re: VMS1c186282
24 Jun 25 i     iiiii    i+* Re: VMS7Richard Kettlewell
25 Jun 25 i     iiiii    ii`* Re: VMS6Robert Riches
25 Jun 25 i     iiiii    ii `* Re: VMS5c186282
25 Jun 25 i     iiiii    ii  +- Re: VMS1rbowman
25 Jun 25 i     iiiii    ii  `* Re: VMS3John Ames
25 Jun 25 i     iiiii    ii   `* Re: VMS2John Ames
26 Jun 25 i     iiiii    ii    `- Re: VMS1c186282
27 Jun 25 i     iiiii    i`* Re: VMS37candycanearter07
27 Jun 25 i     iiiii    i `* Re: VMS36Richard Kettlewell
27 Jun 25 i     iiiii    i  +* Re: VMS4The Natural Philosopher
27 Jun 25 i     iiiii    i  i`* Re: VMS3c186282
27 Jun 25 i     iiiii    i  i `* Re: VMS2The Natural Philosopher
28 Jun 25 i     iiiii    i  i  `- Re: VMS1Chris Ahlstrom
27 Jun 25 i     iiiii    i  `* Re: VMS31c186282
27 Jun 25 i     iiiii    i   `* Re: VMS30rbowman
27 Jun 25 i     iiiii    i    +* Re: VMS4Lew Pitcher
28 Jun 25 i     iiiii    i    i`* Re: VMS3Lawrence D'Oliveiro
28 Jun 25 i     iiiii    i    i `* Re: VMS2c186282
28 Jun 25 i     iiiii    i    i  `- Re: VMS1rbowman
27 Jun 25 i     iiiii    i    `* Re: VMS25c186282
28 Jun 25 i     iiiii    i     `* Re: VMS24Richard Kettlewell
29 Jun 25 i     iiiii    i      `* Re: VMS23c186282
29 Jun 25 i     iiiii    i       `* Re: VMS22Richard Kettlewell
30 Jun 25 i     iiiii    i        `* Re: VMS21c186282
30 Jun 25 i     iiiii    i         +* Re: VMS19The Natural Philosopher
30 Jun 25 i     iiiii    i         i+* Re: VMS13Richard Kettlewell
30 Jun 25 i     iiiii    i         ii+* Re: VMS3The Natural Philosopher
30 Jun 25 i     iiiii    i         iii`* Re: VMS2Lawrence D'Oliveiro
30 Jun 25 i     iiiii    i         iii `- Re: VMS1John Ames
30 Jun 25 i     iiiii    i         ii+* Re: VMS4Richard Kettlewell
30 Jun 25 i     iiiii    i         iii`* Re: VMS3The Natural Philosopher
30 Jun 25 i     iiiii    i         iii `* Re: VMS2Lawrence D'Oliveiro
1 Jul 25 i     iiiii    i         iii  `- Re: VMS1c186282
1 Jul 25 i     iiiii    i         ii`* Re: VMS5c186282
1 Jul 25 i     iiiii    i         ii `* Re: VMS4The Natural Philosopher
1 Jul 25 i     iiiii    i         ii  `* Re: VMS3Lew Pitcher
2 Jul 25 i     iiiii    i         ii   +- Re: VMS1c186282
2 Jul 25 i     iiiii    i         ii   `- Re: VMS1Lew Pitcher
30 Jun 25 i     iiiii    i         i+* Re: VMS2Lawrence D'Oliveiro
30 Jun 25 i     iiiii    i         ii`- Re: VMS1rbowman
1 Jul 25 i     iiiii    i         i`* Re: VMS3c186282
1 Jul 25 i     iiiii    i         i `* Re: VMS2rbowman
1 Jul 25 i     iiiii    i         i  `- Re: VMS1c186282
30 Jun 25 i     iiiii    i         `- Re: VMS1Richard Kettlewell
27 Jun 25 i     iiiii    `- Re: VMS1Rich
20 Jun 25 i     iiii`* Re: VMS5Richard Kettlewell
21 Jun 25 i     iiii +* Re: VMS2Rich
21 Jun 25 i     iiii i`- Re: VMS1Richard Kettlewell
21 Jun 25 i     iiii `* Re: VMS2Lawrence D'Oliveiro
21 Jun 25 i     iiii  `- Re: VMS1c186282
21 Jun 25 i     iii`- Re: VMS1c186282
21 Jun 25 i     ii`* Re: VMS2c186282
21 Jun 25 i     ii `- Re: VMS1rbowman
20 Jun 25 i     i+* Re: VMS6The Natural Philosopher
20 Jun 25 i     i`* Re: VMS2Rich
20 Jun 25 i     `* Re: VMS2Lawrence D'Oliveiro
15 Jun 25 `* Re: VMS8Rich

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal