diff options
author | Elliott Hughes <enh@google.com> | 2014-06-06 16:49:39 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-06-06 16:49:39 -0700 |
commit | 47ba295b0679148970bbffc9b76a3651efea9502 (patch) | |
tree | 50c35c2ca079093c8f315c21cd53c7df8da0987a /libc/bionic/assert.cpp | |
parent | 6fa47ca484aa37b0a2a5734a9def32973d110cc6 (diff) | |
download | android_bionic-47ba295b0679148970bbffc9b76a3651efea9502.tar.gz android_bionic-47ba295b0679148970bbffc9b76a3651efea9502.tar.bz2 android_bionic-47ba295b0679148970bbffc9b76a3651efea9502.zip |
Rewrite and hide longjmperror.
This shouldn't be public API, isn't supported on x86/x86_64, and it's
unlikely anyone would have actually seen the message before anyway.
Using __libc_fatal makes it much more likely to be seen.
Bug: 11156955
Change-Id: Icf7f654b22a7dacd89668b60c11e5705c7215c08
Diffstat (limited to 'libc/bionic/assert.cpp')
-rw-r--r-- | libc/bionic/assert.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/bionic/assert.cpp b/libc/bionic/assert.cpp index ba6714323..985fc384b 100644 --- a/libc/bionic/assert.cpp +++ b/libc/bionic/assert.cpp @@ -34,10 +34,12 @@ void __assert(const char* file, int line, const char* failed_expression) { __libc_fatal("%s:%d: assertion \"%s\" failed", file, line, failed_expression); - /* NOTREACHED */ } void __assert2(const char* file, int line, const char* function, const char* failed_expression) { __libc_fatal("%s:%d: %s: assertion \"%s\" failed", file, line, function, failed_expression); - /* NOTREACHED */ +} + +extern "C" __LIBC_HIDDEN__ void longjmperror() { + __libc_fatal("longjmp botch"); } |