author | Sebastian Harl <sh@tokkee.org> | |
Fri, 27 Feb 2015 16:39:51 +0000 (17:39 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 27 Feb 2015 16:39:51 +0000 (17:39 +0100) |
src/frontend/sock.c | patch | blob | history | |
t/valgrind.suppress | patch | blob | history |
diff --git a/src/frontend/sock.c b/src/frontend/sock.c
index cf187fcb42adc4bffc229f6c20ed208105c9bde5..1f3ec5fd74b70ee903a68ce8678bd2fb69c4a87b 100644 (file)
--- a/src/frontend/sock.c
+++ b/src/frontend/sock.c
"connection %s to list of open connections",
SDB_OBJ(conn)->name);
}
- write(sock->trigger[TRIGGER_WRITE], "", 1);
+ if (write(sock->trigger[TRIGGER_WRITE], "", 1) <= 0) {
+ /* This shouldn't happen and it's not critical; in the worst cases
+ * it slows us down. */
+ sdb_log(SDB_LOG_WARNING, "frontend: Failed to trigger main loop");
+ }
/* pass ownership back to list; or destroy in case of an error */
sdb_object_deref(SDB_OBJ(conn));
diff --git a/t/valgrind.suppress b/t/valgrind.suppress
index 67d05fda0031ae646ecce5daff6076a6c1f38688..66a1e6336c57832e97713410dbd9dbe88de54d51 100644 (file)
--- a/t/valgrind.suppress
+++ b/t/valgrind.suppress
fun:dl_open_worker
...
}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Value8
+ obj:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Value8
+ obj:/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ obj:/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
+ ...
+}
{
<insert_a_suppression_name_here>
Memcheck:Cond
fun:ASN1_item_ex_d2i
...
}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Param
+ write(buf)
+ ...
+ fun:BIO_write
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:BN_mod_mul
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:BN_mul
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:BN_div
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:BN_add
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:BN_sub
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:BN_mod_exp_mont_consttime
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:BN_mod_exp_mont
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ fun:memset
+ fun:BUF_MEM_grow_clean
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:RSA_sign
+ ...
+ fun:EVP_SignFinal
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Value8
+ ...
+ fun:RSA_sign
+ ...
+ fun:EVP_SignFinal
+ ...
+}
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Cond
+ ...
+ fun:RSA_padding_check_PKCS1_type_2
+ ...
+}