Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #380985

Re: *rubeyes*: realloc(ptr, 0) is UB?

From Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups comp.lang.c
Subject Re: *rubeyes*: realloc(ptr, 0) is UB?
Date 2024-01-26 05:51 -0800
Organization A noiseless patient Spider
Message-ID <86ttn0cie6.fsf@linuxsc.com> (permalink)
References (13 earlier) <wwvh6j5mzxv.fsf@LkoBDZeT.terraraq.uk> <86plxsg0k9.fsf@linuxsc.com> <wwvcytsxuhg.fsf@LkoBDZeT.terraraq.uk> <868r4gf05a.fsf@linuxsc.com> <20240123135221.827@kylheku.com>

Show all headers | View raw


Kaz Kylheku <433-929-6894@kylheku.com> writes:

> On 2024-01-23, Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
>
>> Richard Kettlewell <invalid@invalid.invalid> writes:
>>
>>> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>>>
>>>> Richard Kettlewell <invalid@invalid.invalid> writes:
>>>>
>>>>> Of course that's what the cautious programmer must do practice.  But in
>>>>> terms of the total cost (over all users, implementers, etc) fixing the
>>>>> definitions of memcpy/memset/etc (as well as malloc) would have been the
>>>>> better answer.
>>>>
>>>> Better in some ways, worse in others.  Better for me is not
>>>> always the same as better for thee.
>>>
>>> The way I think it's better is total cost over all users, implementers,
>>> etc.  [...]
>>
>> Yes, I got that.  Not everyone shares that view.  It's not
>> even a given that everyone thinks that's the best metric
>> to optimize.
>
> It is an inherently collectivist view;  I would expect communists
> to agree with it unanimously.  (But then bungle the execution by
> forming a five year plan in which the work is divided into groups
> driven by meaningless local metrics and irrelevant incentives.)

All science trembles at the searing logic of your fiery intellect.

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: *rubeyes*: realloc(ptr, 0) is UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-01-21 03:47 -0800
  Re: *rubeyes*: realloc(ptr, 0) is UB? Richard Kettlewell <invalid@invalid.invalid> - 2024-01-22 10:21 +0000
    Re: *rubeyes*: realloc(ptr, 0) is UB? Kaz Kylheku <433-929-6894@kylheku.com> - 2024-01-22 18:54 +0000
    Re: *rubeyes*: realloc(ptr, 0) is UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-01-22 20:01 -0800
      Re: *rubeyes*: realloc(ptr, 0) is UB? Richard Kettlewell <invalid@invalid.invalid> - 2024-01-23 09:35 +0000
        Re: *rubeyes*: realloc(ptr, 0) is UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-01-23 09:08 -0800
          Re: *rubeyes*: realloc(ptr, 0) is UB? Kaz Kylheku <433-929-6894@kylheku.com> - 2024-01-23 21:56 +0000
            Re: *rubeyes*: realloc(ptr, 0) is UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-01-26 05:51 -0800
          Re: *rubeyes*: realloc(ptr, 0) is UB? Richard Kettlewell <invalid@invalid.invalid> - 2024-01-24 23:37 +0000
            Re: *rubeyes*: realloc(ptr, 0) is UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-01-26 07:54 -0800
              Re: *rubeyes*: realloc(ptr, 0) is UB? Richard Kettlewell <invalid@invalid.invalid> - 2024-01-26 21:04 +0000
                Re: *rubeyes*: realloc(ptr, 0) is UB? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-02-01 05:39 -0800

csiph-web