Re: [PATCH] maint: avoid undefined behavior in qsort call
From:
Jim Meyering
Subject:
Re: [PATCH] maint: avoid undefined behavior in qsort call
Date:
Wed, 24 Jun 2015 15:00:21 -0700
On Wed, Jun 24, 2015 at 11:15 AM, Pádraig Brady <address@hidden> wrote:
> GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
> "runtime error: null pointer passed as argument 1,
> which is declared to never be null"
> * src/ptx.c (sort_found_occurs): Avoid the call with no entries.
Nice!