On Sun, Oct 04, 2009 at 11:42:20PM +0200, Krzysztof Piotr Oledzki wrote: > >From c09c436aca5fd0d2363e27b62c61a86c04c0aa71 Mon Sep 17 00:00:00 2001 > From: Krzysztof Piotr Oledzki <o...@ans.pl> > Date: Sun, 4 Oct 2009 23:34:15 +0200 > Subject: [BUG] Fix NULL pointer dereference in stats_check_uri_auth(), v2 > > Recent "struct chunk rework" introduced a NULL pointer dereference > and now haproxy segfaults if auth is required for stats but not found. > > The reason is that size_t cannot store negative values, but current > code assumes that "len < 0" == uninitialized. > > This patch fixes it.
OK merged, thanks. Also, I think it would make sense to check if we still need that <0 feature. Now that we have the size of the chunk, we might as well use that and not set len < 0. Willy