Discussion:
[ast-developers] Closed file descriptor is passed to sh_iosave()
Siteshwar Vashisht
2017-02-13 11:19:17 UTC
Permalink
This was caught when I ran a static analyzer on ksh sources:

src/cmd/ksh93/sh/io.c:1489: pass_closed_arg: Passing closed handle "fn" as an argument to "sh_iosave".

Attaching a patch that fixes this issue.
--
--
Siteshwar Vashisht
Loading...