Commit 3727959
authored
Fix some minor issues found from static analysis (WebAssembly#765)
This commit fixes two separate issues identified by some static analysis
of wasi-libc, notably:
* A missing null-check from an allocation.
* An erroneous `__wasilibc_cwd_unlock()` in `chdir.c` affecting threaded
targets.1 parent e8438cc commit 3727959
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
0 commit comments