Commit 68710c4
syms: Initialize ModulePath::fd_ to invalid FD
~ModulePath() does `if (fd_ > 0) close fd_;`. But ModulePath constructor
has early return codepath for `!enter_ns` which does not initialize
`fd_`.
So `fd_` can potentially have junk value. That junk value could be any
FD downstream. bcc cannot be closing random FDs.1 parent fea5b15 commit 68710c4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments