[PATCH] config parser: do not assume that realloc return same pointer

2010-09-16 Thread Natanael Copa
We need to update the parser-line pointer on realloc and do not initialize the token array til after the potensial realloc in bb_get_chunk_with_continuation(). While here, also replace a realloc() with malloc() where pointer always is NULL. Signed-off-by: Natanael Copa natanael.c...@gmail.com

[ANNOUNCE] Prelink for uClibc available

2010-09-16 Thread Carmelo AMOROSO
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks, we are proud to announce the availability of prelink support for uClibc. This work required a big effort from STMicroelectronics uClibc team, especially my colleague Filippo Arcidiacono, and we really would like to upstream. We have just

[PATCH] getservice: getservent_r must return ERANGE when buffer is too small

2010-09-16 Thread Natanael Copa
This fixes issue introduced by 72e1a1ce186c39f07282398e2af9eb0253e60f15 This should also fix the following testcase to exit with error rather than cause an endless loop. int main(void) { if (getservbyname(non-existing, udp) == NULL) err(1, getservbyname); return

[PATCH] config parser: always initialize line pointer

2010-09-16 Thread Natanael Copa
We must always initialize line pointer since data pointer might have changed due to a realloc (in getserv.c for example). Signed-off-by: Natanael Copa natanael.c...@gmail.com --- libc/misc/internals/parse_config.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git