Commit 3113760
committed
Address CodeRabbit third review round on PR 2013
- Flat view trailing gap: bound by iso->getTD(0).toLBA() (actual loaded
image end) instead of PVD_VolumeSpaceSize (logical volume length).
- Extract/Replace now persist the sector mode alongside the selection
and pass it into CDRIsoFile, matching Hex Edit; gaps/system use RAW,
hidden files use their detected M1/M2_FORM1/M2_FORM2 mode.
- Replace coroutine: aborts on I/O errors with a printed message
instead of silently zero-padding over read/write failures. Also
clamps replacement->size() without truncating through uint32_t.
- Gap scan: unrecognized sector modes now accumulate into a gap entry
(instead of silently dropping bytes) and the scan yields periodically
so long runs don't freeze the UI.
- readerListDir: the C++ side now strips "." / ".." sentinel entries
so Lua callers never see them, regardless of how LuaJIT's ffi.string
happens to encode the single-NUL filename.
- collectAllEntries (Lua) and collectFlatEntries (GUI) now carry a
visited-LBA set to guard against directory cycles in malformed ISOs.
Zero-length extents are also skipped in the Lua side so they don't
confuse gap aggregation.
Signed-off-by: Nicolas 'Pixel' Noble <nicolas@nobis-crew.org>1 parent e97564b commit 3113760
4 files changed
Lines changed: 135 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
66 | 80 | | |
67 | 81 | | |
68 | 82 | | |
69 | 83 | | |
70 | | - | |
| 84 | + | |
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
| |||
90 | 104 | | |
91 | 105 | | |
92 | 106 | | |
93 | | - | |
| 107 | + | |
94 | 108 | | |
95 | 109 | | |
96 | 110 | | |
| |||
127 | 141 | | |
128 | 142 | | |
129 | 143 | | |
130 | | - | |
| 144 | + | |
| 145 | + | |
131 | 146 | | |
132 | 147 | | |
133 | 148 | | |
| |||
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
140 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
141 | 158 | | |
142 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
143 | 163 | | |
144 | 164 | | |
145 | 165 | | |
| |||
167 | 187 | | |
168 | 188 | | |
169 | 189 | | |
170 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
171 | 193 | | |
172 | 194 | | |
173 | 195 | | |
| |||
0 commit comments