[0.1.1] Fix overflow in libbootimg_init_new()