Change-Id: I2fd33d92ef112290448d08aabd0ed7ec29ab9fbf
--- /dev/null
+diff --git a/jobs.c b/jobs.c
+index d183394..b6f951f 100644
+--- a/jobs.c
++++ b/jobs.c
+@@ -1275,6 +1275,8 @@ find_pipeline (pid, alive_only, jobp)
+ p = the_pipeline;
+ do
+ {
++ if ( p == 0x00 ) break;
++
+ /* Return it if we found it. Don't ever return a recycled pid. */
+ if (p->pid == pid && ((alive_only == 0 && PRECYCLED(p) == 0) || PALIVE(p)))
+ return (p);
Group: Base/Utilities
Source0: %{name}-%{version}.tar.gz
Source1001: bash.manifest
+Source1002: add_pipeline_null_check.patch
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: fdupes
%prep
%setup -q
cp %{SOURCE1001} .
+%{__patch} -p1 < %{SOURCE1002}
%build
export CFLAGS+=" -fPIC -fvisibility=hidden -flto "