Commit 786032d
Fix for crash-f49d257a34c42fb5620c3153569c573aa51802ec: stack-overflow in parseVolumeNonUefiData
Malformed firmware can cause infinite recursion between parseVolumeBody and
parseVolumeNonUefiData when the parent volume has the same offset as the
current item. Add a recursion guard to break the cycle.
Crash report (crash-f49d257a34c42fb5620c3153569c573aa51802ec):
---
ERROR: AddressSanitizer: stack-overflow on address 0x7ffdde142fd8
#0 in TreeModel::base treemodel.cpp
#1 in TreeModel::base treemodel.cpp:173
---1 parent 1d98f22 commit 786032d
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1874 | 1874 | | |
1875 | 1875 | | |
1876 | 1876 | | |
1877 | | - | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
1878 | 1882 | | |
1879 | 1883 | | |
1880 | 1884 | | |
| |||
0 commit comments