Commit 08dbc86
plm(pr2): fourth review-fix pass (MGudgin comments)
1) src/host/plm/src/main.rs: convert stored blob back to CRLF to
match the file's line-ending convention in origin/main; earlier
edits inadvertently rewrote it as LF, making the PR diff show a
whole-file rewrite.
2) event_parser::render_event_xml: replace unsafe { buf.set_len(0) }
with buf.clear() — for Vec<u16> there is nothing to drop and the
safe API expresses intent more clearly.
4) event_parser::render_event_xml: fix growth calculation on the
ERROR_INSUFFICIENT_BUFFER retry. Vec::reserve(additional)
guarantees capacity >= len + additional, and len is 0 here
(buf was cleared), so passing (needed_u16 - buf.capacity())
under-reserved when needed_u16 was less than 2*capacity and
still under-reserved otherwise. Pass needed_u16 directly.
Reverted (was pr2 commit): --with-bfs build.bat additions; the
AppContainer Tier 2 BFS build flag will be re-introduced
separately per reviewer request.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent fc9583d commit 08dbc86
2 files changed
Lines changed: 501 additions & 500 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 168 | + | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
| |||
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
206 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
0 commit comments