write past end of buffer in vasnprintf() implementation of %f

2018-09-22 Thread Ben Pfaff
When I apply the following patch to gnulib: -- diff --git a/tests/test-vasnprintf.c b/tests/test-vasnprintf.c index 19731bc93378..105ac24c94a3 100644 --- a/tests/test-vasnprintf.c +++ b/tests/test-vasnprintf.c @@ -59,6 +59,11 @@ t

Re: [PATCH] lib/vasnprintf.c: Add information to make integer comparison logical

2018-09-22 Thread Bruno Haible
Bjarni Ingi Gislason wrote: > A question (comment) from the compiler (gcc 8.2): > > ../lib/vasnprintf.c:5107:35: warning: comparison of integer expressions of > different signedness: 'int' and 'size_t' {aka 'long unsigned int'} > [-Wsign-compare] > if (count < maxlen >

[PATCH] lib/vasnprintf.c: Add information to make integer comparison logical

2018-09-22 Thread Bjarni Ingi Gislason
A question (comment) from the compiler (gcc 8.2): ../lib/vasnprintf.c:5107:35: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] if (count < maxlen ^ Th

Re: Would timevar be accepted in gnulib?

2018-09-22 Thread Akim Demaille
Hi all, Thanks for the answers! > Le 21 sept. 2018 à 14:04, Bruno Haible a écrit : > > Hi Akim, > >> Would there be some interest for this in gnulib? > > There is well a place for modules like this one in gnulib. See > https://www.gnu.org/software/gnulib/manual/html_node/Portability-and-Appli