lnls-dig / uhal

HAL for LNLS's μTCA platform
https://lnls-dig.github.io/uhal/
GNU General Public License v3.0
0 stars 1 forks source link

decode-reg: check if build_info exists in quiet mode. #48

Closed henriquesimoes closed 1 month ago

henriquesimoes commented 2 months ago

In an inconsistent link state, it is occasionally possible to open the resource file for a given board, even though it does not correctly report its synthesis information. In this situation, build_info will be empty and a segmentation fault will probably happen in puts. Avoid crashing in such cases by not assuming a value will always exist.