Browse Source

Reacting properly on failure to set hppa or alpha boot image. Coverity CID 28828, 28829.

master
Thomas Schmitt 7 years ago
parent
commit
3d2ae3befe
  1. 4
      xorriso/opts_a_c.c
  2. 2
      xorriso/xorriso_timestamp.h

4
xorriso/opts_a_c.c

@ -915,6 +915,8 @@ treatment_patch:;
strncpy(parm, treatpt + 5, parm_len);
parm[parm_len]= 0;
ret= Xorriso_set_hppa_boot_parm(xorriso, eqpt + 1, parm, 0);
if(ret <= 0)
goto ex;
} else if(strncmp(treatpt, "alpha_boot=", 11) == 0) {
sprintf(eff_path, "-boot_image %s %s", formpt, treatpt);
@ -922,6 +924,8 @@ treatment_patch:;
if(ret <= 0)
goto ex;
ret = Xorriso_set_alpha_boot(xorriso, treatpt + 11, 0);
if(ret <= 0)
goto ex;
} else if(strncmp(treatpt, "boot_info_table=", 16)==0) {
if(strcmp(treatpt + 16, "off") == 0)

2
xorriso/xorriso_timestamp.h

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.06.194638"
#define Xorriso_timestamP "2015.11.06.200320"

Loading…
Cancel
Save