From a91b113be8fca1a38b2b7f67be11039f3efd44e3 Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Thu, 16 Nov 2017 12:18:00 +0100 Subject: [PATCH] Avoid integer overflow while allocating memory in read_comsub() function diff --git a/subst.c b/subst.c index eb855e9d..e48524e5 100644 --- a/subst.c +++ b/subst.c @@ -5803,7 +5803,8 @@ read_comsub (fd, quoted, flags, rflag) int *rflag; { char *istring, buf[128], *bufp, *s; - int istring_index, istring_size, c, tflag, skip_ctlesc, skip_ctlnul; + size_t istring_size, istring_index; + int c, tflag, skip_ctlesc, skip_ctlnul; ssize_t bufn; int nullbyte; -- 2.13.6