fexc: add some sanity checking to bin reading

Signed-off-by: Luc Verhaegen <libv@skynet.be>