diff options
author | Ron Yorston <rmy@pobox.com> | 2024-01-14 11:06:43 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-01-14 11:06:43 +0000 |
commit | 19458265b715108bb45f7fc5a7cdb43f9a3be73b (patch) | |
tree | 930c2642d92d88c093f6a22e7b5576ff04b1da87 /procps | |
parent | 72602d763cd164320a27f6db0fedb490cb9b457f (diff) | |
download | busybox-w32-19458265b715108bb45f7fc5a7cdb43f9a3be73b.tar.gz busybox-w32-19458265b715108bb45f7fc5a7cdb43f9a3be73b.tar.bz2 busybox-w32-19458265b715108bb45f7fc5a7cdb43f9a3be73b.zip |
ash: special case in creation of pipeline
When a pipeline is created the parent allocates an array of procstat
structures sufficient for the number of members of the pipeline.
The child processes, however, only see the number of processes
created so far. Thus, the first child sees that a procstat array
has been created but contains no processes.
This resulted in an invalid pointer to the procstat array in the
first child. This probably doesn't matter: if the number of
processes is zero there should be no need to access the array.
Set the pointer to NULL so if it is accessed we'll know about it.
Diffstat (limited to 'procps')
0 files changed, 0 insertions, 0 deletions