Commit 2a59e89
authored
Validate the written chunks when using a seed (folbricht#214)
The seed values are validated at the beginning when we create the
extraction "plan".
However a seed might point to a location where is possible to read and
write data. In that case, even if at the beginning we validated the seed
data, the assumption that when we use `WriteInto()` the seed data is
still valid might not be true anymore.
For this reason we should also re-validate the written data to ensure
that what ended up in the destination is exactly what we were expecting.
Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>1 parent 8a266d6 commit 2a59e89
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
131 | 147 | | |
132 | 148 | | |
133 | 149 | | |
| |||
0 commit comments