Commit 5fcab2e
committed
fix(handler): handle false positives YAFFS sample by checking entries.
We have a YAFFS false positive sample that gets parsed but triggers a
NodeIDAbsentError when calling
'self.file_entries.expand_tree(mode=Tree.DEPTH)' during extraction. This
exception is raised by treelib if the tree is empty.
We handle this edge case by checking if the tree is empty after the
chunk identification, and raise an InvalidInputFormat if it is.1 parent 452d926 commit 5fcab2e
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
| 329 | + | |
328 | 330 | | |
329 | 331 | | |
| 332 | + | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| |||
0 commit comments