From 6ae027498d11e2c1b0e14f2133260f31b269f72f Mon Sep 17 00:00:00 2001 From: Packit Bot Date: May 04 2021 22:37:13 +0000 Subject: Apply patch glibc-rh1727152.patch patch_name: glibc-rh1727152.patch present_in_specfile: true location_in_specfile: 175 --- diff --git a/nscd/connections.c b/nscd/connections.c index 47fbb99..9818200 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -304,7 +304,8 @@ static int check_use (const char *data, nscd_ssize_t first_free, uint8_t *usemap, enum usekey use, ref_t start, size_t len) { - assert (len >= 2); + if (len < 2) + return 0; if (start > first_free || start + len > first_free || (start & BLOCK_ALIGN_M1))