Liste des Groupes | Revenir à ol misc |
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.
Date | Sujet | # | Auteur | |
14 Jun 25 | ![]() | 118 | Bobbie Sellers | |
14 Jun 25 | ![]() ![]() | 109 | Andreas Eder | |
15 Jun 25 | ![]() ![]() ![]() | 108 | Lawrence D'Oliveiro | |
15 Jun 25 | ![]() ![]() ![]() ![]() | 11 | rbowman | |
15 Jun 25 | ![]() ![]() ![]() ![]() ![]() | 10 | c186282 | |
15 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() | 5 | The Natural Philosopher | |
16 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | c186282 | |
18 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | c186282 | |
18 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | rbowman | |
18 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
15 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() | 4 | rbowman | |
16 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | c186282 | |
16 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | rbowman | |
16 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
15 Jun 25 | ![]() ![]() ![]() ![]() | 96 | c186282 | |
18 Jun 25 | ![]() ![]() ![]() ![]() ![]() | 95 | candycanearter07 | |
18 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() | 94 | c186282 | |
18 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | candycanearter07 | |
18 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Rich | |
19 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | rbowman | |
19 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 90 | Richard Kettlewell | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 87 | c186282 | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 78 | Richard Kettlewell | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 75 | The Natural Philosopher | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Richard Kettlewell | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 72 | Rich | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 66 | The Natural Philosopher | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 65 | Rich | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | The Natural Philosopher | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 63 | rbowman | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 62 | Robert Riches | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | rbowman | |
22 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 59 | candycanearter07 | |
22 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Richard Kettlewell | |
22 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | The Natural Philosopher | |
23 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
22 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | rbowman | |
23 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | candycanearter07 | |
23 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | rbowman | |
24 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 51 | Robert Riches | |
24 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 6 | rbowman | |
24 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | rbowman | |
24 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | The Natural Philosopher | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | c186282 | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | The Natural Philosopher | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
24 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 7 | Richard Kettlewell | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 6 | Robert Riches | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | c186282 | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | rbowman | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | John Ames | |
25 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | John Ames | |
26 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
27 Jun07:00 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 37 | candycanearter07 | |
27 Jun08:37 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 36 | Richard Kettlewell | |
27 Jun08:45 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | The Natural Philosopher | |
27 Jun18:27 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | c186282 | |
27 Jun19:13 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | The Natural Philosopher | |
28 Jun14:16 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Chris Ahlstrom | |
27 Jun18:24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 31 | c186282 | |
27 Jun18:40 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 30 | rbowman | |
27 Jun19:20 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | Lew Pitcher | |
28 Jun00:03 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Lawrence D'Oliveiro | |
28 Jun06:13 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | c186282 | |
28 Jun07:10 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | rbowman | |
27 Jun23:16 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 25 | c186282 | |
28 Jun08:52 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 24 | Richard Kettlewell | |
29 Jun04:16 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 23 | c186282 | |
29 Jun08:18 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 22 | Richard Kettlewell | |
30 Jun00:09 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 21 | c186282 | |
30 Jun08:36 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 19 | The Natural Philosopher | |
30 Jun08:51 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 13 | Richard Kettlewell | |
30 Jun08:59 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | The Natural Philosopher | |
30 Jun09:33 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Lawrence D'Oliveiro | |
30 Jun17:08 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | John Ames | |
30 Jun09:00 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | Richard Kettlewell | |
30 Jun09:24 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | The Natural Philosopher | |
30 Jun09:34 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Lawrence D'Oliveiro | |
1 Jul04:30 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
1 Jul04:26 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | c186282 | |
1 Jul10:49 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 4 | The Natural Philosopher | |
1 Jul13:44 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | Lew Pitcher | |
2 Jul02:46 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
2 Jul17:03 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Lew Pitcher | |
30 Jun08:54 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Lawrence D'Oliveiro | |
30 Jun19:10 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | rbowman | |
1 Jul04:12 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 3 | c186282 | |
1 Jul05:02 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | rbowman | |
1 Jul17:42 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
30 Jun08:56 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Richard Kettlewell | |
27 Jun20:40 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Rich | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 5 | Richard Kettlewell | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Rich | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | Richard Kettlewell | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Lawrence D'Oliveiro | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | c186282 | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | c186282 | |
21 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 1 | rbowman | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 6 | The Natural Philosopher | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Rich | |
20 Jun 25 | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 2 | Lawrence D'Oliveiro | |
15 Jun 25 | ![]() ![]() | 8 | Rich |
Les messages affichés proviennent d'usenet.