bash-4.4-jobs_overflow.patch 331 B

123456789101112131415
  1. https://lists.gnu.org/archive/html/bug-bash/2017-12/msg00025.html
  2. https://bugs.gentoo.org/644720
  3. --- bash-4.4/jobs.c
  4. +++ bash-4.4/jobs.c
  5. @@ -750,7 +750,7 @@
  6. else
  7. nsize = bgpids.nalloc;
  8. - while (nsize < js.c_childmax)
  9. + while (nsize < (ps_index_t)js.c_childmax)
  10. nsize *= 2;
  11. if (bgpids.nalloc < js.c_childmax)