News for hackers. Stuff that matters.
Re: by lelanthran on Wednesday October 01, 2025 @11:02AM (#45438541)
> Yes, it can.

I don't think so. If it could, then this code would reliably crash:

    char *mystr = strdup (oldstr);
    if (mystr)
        *mystr = 0; // Truncate string
That never crashes.
Re: by menaerus on Friday October 03, 2025 @11:16AM (#45463941)