diff options
author | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-30 17:47:30 +0000 |
---|---|---|
committer | deanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-30 17:47:30 +0000 |
commit | 459e14ca05d601d334532bf4bd96e3a7c753faa9 (patch) | |
tree | 3ff556cee54243f4a3e1f8265d70416325d5042b /base/bzip2_error_handler.cc | |
parent | 085ae9601431b16db2d143ac0acea8dc6d4801e7 (diff) | |
download | chromium_src-459e14ca05d601d334532bf4bd96e3a7c753faa9.zip chromium_src-459e14ca05d601d334532bf4bd96e3a7c753faa9.tar.gz chromium_src-459e14ca05d601d334532bf4bd96e3a7c753faa9.tar.bz2 |
Use own our bzip2 error handler instead of the default which prints error messages to STDERR and calls exit(1). This is better, since we will now crash instead of exiting. This also removes some unnecessary code and error strings from bzip2.
BUG=1289861
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/bzip2_error_handler.cc')
-rw-r--r-- | base/bzip2_error_handler.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/bzip2_error_handler.cc b/base/bzip2_error_handler.cc index 2774627..7556cb9 100644 --- a/base/bzip2_error_handler.cc +++ b/base/bzip2_error_handler.cc @@ -31,6 +31,7 @@ // We define BZ_NO_STDIO in third_party/bzip2 to remove its internal STDERR // error reporting. This requires us to export our own error handler. +extern "C" void bz_internal_error(int errcode) { CHECK(false) << "bzip2 internal error: " << errcode; } |