CWS-TOOLING: integrate CWS cmcfixes66
This commit is contained in:
@@ -199,6 +199,8 @@ void read_encoding_table(char * file, EncodingMap& aEncodingMap)
|
|||||||
aEncodingMap.insert( EncodingMap::value_type(language, encoding->value) );
|
aEncodingMap.insert( EncodingMap::value_type(language, encoding->value) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
@@ -311,6 +313,7 @@ int main( int argc, char * const argv[] )
|
|||||||
ostream = fopen(outfile, "w");
|
ostream = fopen(outfile, "w");
|
||||||
if ( ostream == NULL ) {
|
if ( ostream == NULL ) {
|
||||||
fprintf(stderr, "ulfconv: %s : %s\n", outfile, strerror(errno));
|
fprintf(stderr, "ulfconv: %s : %s\n", outfile, strerror(errno));
|
||||||
|
fclose(istream);
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -351,4 +354,7 @@ int main( int argc, char * const argv[] )
|
|||||||
fputs(buffer, ostream);
|
fputs(buffer, ostream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(ostream);
|
||||||
|
fclose(istream);
|
||||||
}
|
}
|
||||||
|
@@ -239,7 +239,7 @@ sal_Int16 SAL_CALL X509Certificate_MSCryptImpl :: getVersion() throw ( ::com::su
|
|||||||
) ;
|
) ;
|
||||||
|
|
||||||
if( cbIssuer <= 0 ) {
|
if( cbIssuer <= 0 ) {
|
||||||
delete issuer ;
|
delete [] issuer ;
|
||||||
throw RuntimeException() ;
|
throw RuntimeException() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ sal_Int16 SAL_CALL X509Certificate_MSCryptImpl :: getVersion() throw ( ::com::su
|
|||||||
|
|
||||||
if(issuer[cbIssuer-1] == 0) cbIssuer--; //delimit the last 0x00;
|
if(issuer[cbIssuer-1] == 0) cbIssuer--; //delimit the last 0x00;
|
||||||
OUString xIssuer(issuer , cbIssuer ,encoding ) ; //By CP
|
OUString xIssuer(issuer , cbIssuer ,encoding ) ; //By CP
|
||||||
delete issuer ;
|
delete [] issuer ;
|
||||||
|
|
||||||
return replaceTagSWithTagST(xIssuer);
|
return replaceTagSWithTagST(xIssuer);
|
||||||
} else {
|
} else {
|
||||||
@@ -288,7 +288,7 @@ sal_Int16 SAL_CALL X509Certificate_MSCryptImpl :: getVersion() throw ( ::com::su
|
|||||||
) ;
|
) ;
|
||||||
|
|
||||||
if( cbSubject <= 0 ) {
|
if( cbSubject <= 0 ) {
|
||||||
delete subject ;
|
delete [] subject ;
|
||||||
throw RuntimeException() ;
|
throw RuntimeException() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -301,7 +301,7 @@ sal_Int16 SAL_CALL X509Certificate_MSCryptImpl :: getVersion() throw ( ::com::su
|
|||||||
|
|
||||||
if(subject[cbSubject-1] == 0) cbSubject--; //delimit the last 0x00;
|
if(subject[cbSubject-1] == 0) cbSubject--; //delimit the last 0x00;
|
||||||
OUString xSubject(subject , cbSubject ,encoding ) ; //By CP
|
OUString xSubject(subject , cbSubject ,encoding ) ; //By CP
|
||||||
delete subject ;
|
delete [] subject ;
|
||||||
|
|
||||||
return replaceTagSWithTagST(xSubject);
|
return replaceTagSWithTagST(xSubject);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user