[TUHS] Minimum Array Sizes in 16 bit C (was Maximum)
Rich Salz
rich.salz at gmail.com
Tue Oct 1 06:03:15 AEST 2024
On Mon, Sep 30, 2024 at 3:12 PM Steffen Nurpmeso <steffen at sdaoden.eu> wrote
> noone ever told them that even the eldest C can be used in a safe
> way;
Perhaps we have different meanings of the word safe.
void foo(char *p) { /* interesting stuff here */ ; free(p); }
void bar() { char *p = malloc(20);
foo(p);
printf("foo is %s\n", p);
foo(p);
}
Why should I have to think about this code when the language already knows
what is wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20240930/1790df2c/attachment.htm>
More information about the TUHS
mailing list