This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] nscd: avoid assertion failure during persistent db check
- From: Florian Weimer <fweimer at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>, libc-alpha at sourceware dot org
- Date: Tue, 15 May 2018 15:34:59 +0200
- Subject: Re: [PATCH] nscd: avoid assertion failure during persistent db check
- References: <mvmfu2t2grx.fsf@suse.de>
On 05/15/2018 03:24 PM, Andreas Schwab wrote:
- assert (len >= 2);
+ if (len < 2)
+ return 0;
Shouldn't it log a warning at least? Something went very wrong, after all.
Does this need a bug?
Thanks,
Florian