aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/assert.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-06-06 16:49:39 -0700
committerElliott Hughes <enh@google.com>2014-06-06 16:49:39 -0700
commit47ba295b0679148970bbffc9b76a3651efea9502 (patch)
tree50c35c2ca079093c8f315c21cd53c7df8da0987a /libc/bionic/assert.cpp
parent6fa47ca484aa37b0a2a5734a9def32973d110cc6 (diff)
downloadandroid_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.cpp6
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");
}