From: Torsten Bögershausen Date: Fri, 21 Apr 2017 04:18:42 GMT Subject: Re: [PATCH v3 1/2] use HOST_NAME_MAX to size buffers for gethostname(2) Message-ID: <62e3185b-3cbb-f0b4-47be-f4093bfb9a6a@web.de> In-Reply-To: <0882e8f6-f9e2-20c2-4e94-3fa8a50097c9@web.de> > I think I meant to write "big pidfiles" there. > > With xsize_t() gc would die when seeing a pidfile whose size doesn't fit into > size_t. The version I sent just ignores such files. However, it would choke > on slightly smaller files that happen to not fit into memory. And no > reasonable pidfile can be big enough to trigger any of that, so dying on > conversion error wouldn't really be a problem. Is that what you meant? It > makes sense, in any case. In short: Yes. > > Thanks, > René