Calling dotrap() can do almost anything, including reallocating the
jobtab array. Convert the job pointer to an index before calling
dotrap() and then restore a proper job pointer afterwards.
PR: 290330
Reported by: bdrewery
Differential D53793
sh: Fix job pointer invalidation with trapsasync Authored by jilles on Mon, Nov 17, 6:27 PM. Tags None Referenced Files
Subscribers
Details
Calling dotrap() can do almost anything, including reallocating the PR: 290330 Install patched sh with new tests, cd /usr/tests/bin/sh && kyua test and reboot (all within a virtual machine).
Diff Detail
|