This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] nscd: avoid assertion failure during persistent db check


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]