intel_bios_reader: Sanitize input to ensure all data blocks are within bounds
intel_bios_reader: Sanitize input to ensure all data blocks are within bounds

Running intel_bios_reader upon itself causes the reader to crash and
burn. It obviously finds a VBT signature inside the binary, but then
does not rigorously check that all data blocks are valid before
dereferencing them.

Reported-by: Emanuel Bronshtein
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45205
Signed-off-by: Chris Wilson <711c73f64afdce07b7e38039a96d2224209e9a6c@chris-wilson.co.uk>

rib/intel-gpu-tools,dlespiau/intel-gpu-tools,erikarn/intel-gpu-tools,ChrisCummins/intel-gpu-tools,dlespiau/checkmate-test-igt,ChrisCummins/intel-gpu-tools,rib/intel-gpu-tools,mv0/intel-gpu-tools,chenxianqin/intel-gpu-tools,tiagovignatti/intel-gpu-tools,erikarn/intel-gpu-tools,mv0/intel-gpu-tools,ChrisCummins/intel-gpu-tools,dlespiau/checkmate-test-igt,chenxianqin/intel-gpu-tools,yipdw/intel-gpu-tools,chenxianqin/intel-gpu-tools,ChrisCummins/intel-gpu-tools,tiagovignatti/intel-gpu-tools,mv0/intel-gpu-tools,dlespiau/checkmate-test-igt,rib/intel-gpu-tools,tiagovignatti/intel-gpu-tools,dlespiau/checkmate-test-igt,tiagovignatti/intel-gpu-tools,chenxianqin/intel-gpu-tools,dlespiau/intel-gpu-tools,yipdw/intel-gpu-tools,rib/intel-gpu-tools,erikarn/intel-gpu-tools,mv0/intel-gpu-tools,dlespiau/intel-gpu-tools,yipdw/intel-gpu-tools,yipdw/intel-gpu-tools,erikarn/intel-gpu-tools