Coverity fixes: uncaught exceptions
This commit is contained in:
+6
-2
@@ -135,7 +135,11 @@ int main( int argc, char *argv[] )
|
|||||||
verbose = true;
|
verbose = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
test_base64();
|
try {
|
||||||
|
test_base64();
|
||||||
|
} catch ( const std::exception &e ) {
|
||||||
|
fprintf( stderr, "Error: %s\r\n", e.what() );
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -544,8 +544,12 @@ int main( int argc, char *argv[] )
|
|||||||
verbose = true;
|
verbose = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
test_all_vectors();
|
try {
|
||||||
test_iterative();
|
test_all_vectors();
|
||||||
|
test_iterative();
|
||||||
|
} catch ( const std::exception &e ) {
|
||||||
|
fprintf( stderr, "Error: %s\r\n", e.what() );
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user