Commit 9f94511
fix(harness): prevent OOM in verifyChecksum using stream
Resolves #1114 by replacing os.ReadFile with io.Copy to stream the file into the sha-256 hasher, rather than loading the whole file into memory first.
Signed-off-by: satyam kumar <krsatyamthakur@gamil.com>1 parent 925700b commit 9f94511
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
182 | 188 | | |
183 | 189 | | |
184 | | - | |
185 | | - | |
| 190 | + | |
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| |||
0 commit comments