1 Dec 2009 01:39
Re: Weirdness in comm(1)
Greg A. Woods <woods <at> planix.ca>
2009-12-01 00:39:32 GMT
2009-12-01 00:39:32 GMT
At Sun, 29 Nov 2009 09:12:46 +0000, Roy Marples <roy <at> NetBSD.org> wrote: Subject: Re: Weirdness in comm(1) > > When I first looked at fgetstr.c and it's realloction, my first reaction > was that it would crash or have undefined behaviour when newsize > > INT_MAX. Closer inspection shows that it just reallocs the buffer on > each call when newsize > INT_MAX. In other words, it works, just very > inefficiently. Yes, inefficient indeed. > Attached is a patch that should restore this behaviour. Untested though. > Does this appease you to any extent? Yes, I think that's better than introducing a new errno, assuming it tests OK (I haven't tried it yet either) -- -- Greg A. Woods Planix, Inc. <woods <at> planix.com> +1 416 218 0099 http://www.planix.com/


RSS Feed