From ffcbff626c698a477a8d1217e4bade0059a84fc1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 7 Dec 2017 22:11:39 +0000 Subject: main/bash: fix overflow in jobs fixes #8236 --- main/bash/fix-jobs.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 main/bash/fix-jobs.patch (limited to 'main/bash/fix-jobs.patch') diff --git a/main/bash/fix-jobs.patch b/main/bash/fix-jobs.patch new file mode 100644 index 0000000000..c01db4e19f --- /dev/null +++ b/main/bash/fix-jobs.patch @@ -0,0 +1,13 @@ +diff --git a/jobs.c b/jobs.c +index fc96603..d203db2 100644 +--- a/jobs.c ++++ b/jobs.c +@@ -765,7 +765,7 @@ bgp_resize () + else + nsize = bgpids.nalloc; + +- while (nsize < js.c_childmax) ++ while (nsize < (ps_index_t)js.c_childmax) + nsize *= 2; + + if (bgpids.nalloc < js.c_childmax) -- cgit v1.2.3