The OpenBSD Team found this small Error, but they fixed it in the
asprinf way.
Here is a fix for openssl.
Cheers
Jan
@@ -0,0 +1,30 @@
+From c7b31b3f2766067c6b5cf4f2774846e1ede048f4 Mon Sep 17 00:00:00 2001
+Message-Id:
<c7b31b3f2766067c6b5cf4f2774846e1ede048f4.1399220125.git.janpo...@gmx.net>
+From: Janpopan <[email protected]>
+Date: Sun, 4 May 2014 18:13:43 +0200
+Subject: [PATCH] Fix a wrong parameter count ERR_add_error_data
+
+Fix a wrong parameter count ERR_add_error_data - found by the OpenBSD,
+they fixed it in an other way
+
+http://opensslrampage.org/post/83954876482/snprintf-3-gymnastics
+---
+ crypto/dso/dso_dlfcn.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/crypto/dso/dso_dlfcn.c b/crypto/dso/dso_dlfcn.c
+index 5f22548..4a56aac 100644
+--- a/crypto/dso/dso_dlfcn.c
++++ b/crypto/dso/dso_dlfcn.c
+@@ -464,7 +464,7 @@ static int dlfcn_pathbyaddr(void *addr,char
*path,int sz)
+ return len;
+ }
+
+- ERR_add_error_data(4, "dlfcn_pathbyaddr(): ", dlerror());
++ ERR_add_error_data(2, "dlfcn_pathbyaddr(): ", dlerror());
+ #endif
+ return -1;
+ }
+--
+1.9.1
+