Made bug fix Libisofs_rrip_1_10_er_bugfiX unconditional

This commit is contained in:
Thomas Schmitt 2009-04-07 11:52:03 +02:00
parent 854a3b8088
commit d8d2709de9
2 changed files with 0 additions and 40 deletions

View File

@ -5035,13 +5035,6 @@ struct burn_source {
/* ----------------------------- Bug Fixes ----------------------------- */ /* ----------------------------- Bug Fixes ----------------------------- */
/* Bug fix : Use correct size of 237 if the ER of RRIP-1.10 shal be written
(rather than size 182 of RRIP-1.12)
*/
#define Libisofs_rrip_1_10_er_bugfiX yes
/* Portability: Avoid use of function alloca(). /* Portability: Avoid use of function alloca().
Solaris demands to include <alloca,h>, FreeBSD has no such Solaris demands to include <alloca,h>, FreeBSD has no such

View File

@ -1045,20 +1045,12 @@ size_t rrip_calc_len(Ecma119Image *t, Ecma119Node *n, int type, size_t space,
* ER needs a Continuation Area, thus we also need a CE entry * ER needs a Continuation Area, thus we also need a CE entry
*/ */
su_size += 7 + 28; /* SP + CE */ su_size += 7 + 28; /* SP + CE */
#ifdef Libisofs_rrip_1_10_er_bugfiX
/* ER of RRIP */ /* ER of RRIP */
if (t->rrip_version_1_10) { if (t->rrip_version_1_10) {
*ce = 237; *ce = 237;
} else { } else {
*ce = 182; *ce = 182;
} }
#else
*ce = 182;
#endif
if (t->aaip) { if (t->aaip) {
*ce += 160; /* ER of AAIP */ *ce += 160; /* ER of AAIP */
} }
@ -1149,11 +1141,7 @@ int rrip_get_susp_fields(Ecma119Image *t, Ecma119Node *n, int type,
char *name = NULL; char *name = NULL;
char *dest = NULL; char *dest = NULL;
size_t aaip_er_len= 0; size_t aaip_er_len= 0;
#ifdef Libisofs_rrip_1_10_er_bugfiX
size_t rrip_er_len= 182; size_t rrip_er_len= 182;
#endif
size_t su_size_pd, ce_len_pd; /* predicted sizes of SUA and CA */ size_t su_size_pd, ce_len_pd; /* predicted sizes of SUA and CA */
int ce_is_predicted = 0; int ce_is_predicted = 0;
size_t aaip_sua_free= 0, aaip_len= 0; size_t aaip_sua_free= 0, aaip_len= 0;
@ -1524,8 +1512,6 @@ int rrip_get_susp_fields(Ecma119Image *t, Ecma119Node *n, int type,
* Note that SP entry was already added above * Note that SP entry was already added above
*/ */
#ifdef Libisofs_rrip_1_10_er_bugfiX
if (t->rrip_version_1_10) { if (t->rrip_version_1_10) {
rrip_er_len = 237; rrip_er_len = 237;
} else { } else {
@ -1543,25 +1529,6 @@ int rrip_get_susp_fields(Ecma119Image *t, Ecma119Node *n, int type,
/* Allocate the necessary CE space */ /* Allocate the necessary CE space */
ret = susp_add_CE(t, rrip_er_len + aaip_er_len + aaip_len, info); ret = susp_add_CE(t, rrip_er_len + aaip_er_len + aaip_len, info);
#else /* Libisofs_rrip_1_10_er_bugfiX */
if (t->aaip && !t->aaip_susp_1_10) {
aaip_er_len = 160;
}
/* Compute length of AAIP string of root node */
aaip_sua_free= 0;
ret = add_aa_string(t, n, info, &aaip_sua_free, &aaip_len, 1);
if (ret < 0)
goto add_susp_cleanup;
/* Allocate the necessary CE space */
ret = susp_add_CE(t, 182 + aaip_er_len + aaip_len, info);
/* 182 is RRIP-ER length */
#endif /* ! Libisofs_rrip_1_10_er_bugfiX */
if (ret < 0) { if (ret < 0) {
goto add_susp_cleanup; goto add_susp_cleanup;
} }