Skip to content

Conversation

@admardare-cyber
Copy link
Contributor

@admardare-cyber admardare-cyber commented Aug 26, 2025

The logic in process_id() requires a reset of
the efs variable on every iteration through the
while ((fp = readdir(fdp)) loop.

Failure to do that can land us in a situation
where efs=1 from a previous iteration and
pn=1 from the current iteration.

This fixes issue 335 ( lsof SIGSEGV ) #335

The logic in process_id() requires a reset of
the efs variable on every iteration through the
while ((fp = readdir(fdp)) loop.

Failure to do that can land us in a situation
where efs=1 from a previous iteration and
pn=1 from the current iteration.

Signed-off-by: Adrian Mardare <[email protected]>
@jiegec jiegec merged commit 388f177 into lsof-org:master Aug 27, 2025
13 of 15 checks passed
@jiegec jiegec mentioned this pull request Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants