bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some compile-time warnings


From: Chet Ramey
Subject: Re: Some compile-time warnings
Date: Mon, 29 Sep 2025 13:22:14 -0400
User-agent: Mozilla Thunderbird

On 9/29/25 1:00 AM, Martin D Kealey wrote:

The malloc size warning is concerning, as the excessive “size” is
(uint64_t)(-1).

It seems theoretical, since the line in question is

temp = pointer ? realloc (pointer, bytes) : malloc (bytes);

and `bytes' is a size_t, which matches realloc's and malloc's prototypes.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]