armijnhemel / binaryanalysis-ng

Binary Analysis Next Generation (BANG)
GNU Affero General Public License v3.0
461 stars 66 forks source link

uimage: explicitly set the length for the name field. #364

Closed armijnhemel closed 8 months ago

armijnhemel commented 8 months ago

There are some uboot images out there (like several Anjvision IP camera firmware files) where the image name is not NULL terminated. By explicitly setting the length Kaitai Struct will use the length of the field, instead of trying to search for a terminator.