if ( ba->BaseRecord )
{
br = ba->BaseRecord;
- bans = br[0].BaseAnchor;
- FREE( bans );
+ if ( ba->BaseCount )
+ {
+ bans = br[0].BaseAnchor;
+ FREE( bans );
+ }
+
FREE( br );
}
}
if ( m2a->Mark2Record )
{
m2r = m2a->Mark2Record;
- m2ans = m2r[0].Mark2Anchor;
- FREE( m2ans );
+ if ( m2a->Mark2Count )
+ {
+ m2ans = m2r[0].Mark2Anchor;
+ FREE( m2ans );
+ }
+
FREE( m2r );
}
}
if ( error )
return error;
+ if (cpf2->MaxContextLength < 1)
+ return HB_Err_Not_Covered;
+
if ( ALLOC_ARRAY( classes, cpf2->MaxContextLength, HB_UShort ) )
return error;
return error;
known_backtrack_classes = 0;
+ if (ccpf2->MaxInputLength < 1)
+ return HB_Err_Not_Covered;
+
if ( ALLOC_ARRAY( input_classes, ccpf2->MaxInputLength, HB_UShort ) )
goto End3;
known_input_classes = 1;
if ( error )
return error;
+ if (csf2->MaxContextLength < 1)
+ return HB_Err_Not_Covered;
+
if ( ALLOC_ARRAY( classes, csf2->MaxContextLength, HB_UShort ) )
return error;
return error;
known_backtrack_classes = 0;
+ if (ccsf2->MaxInputLength < 1)
+ return HB_Err_Not_Covered;
+
if ( ALLOC_ARRAY( input_classes, ccsf2->MaxInputLength, HB_UShort ) )
goto End3;
known_input_classes = 1;