nccgroup / depthcharge

A U-Boot hacking toolkit for security researchers and tinkerers
https://depthcharge.readthedocs.io
BSD 3-Clause "New" or "Revised" License
257 stars 14 forks source link

Handle ValueError resulting from line.index('=') in uboot/env.py #35

Closed jynik closed 3 years ago

jynik commented 4 years ago

This should be caught and be more resilient to malformed lines. The logic at the end for reporting a ValueError should be hit if we don't see a key=value assignment.

jynik commented 4 years ago

Staged in next @ 8941ac6b15af4675dd4c6af1a7bf8b6b1efd2217