Commit fea0a42
committed
Only write what was read
Without a length parameter here, we write the entire buffer,
including any bogus values that come after whatever we read. This
is the cause of null bytes getting into generated poms for gems.1 parent 5f7cfcc commit fea0a42
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
0 commit comments