From 64d868a77bc98f1e801c93a07c05e84548fc8ce4 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 17 Jan 2020 17:40:00 +0000 Subject: [PATCH] Correctly import PKCS-7 remote metadata The PEM data is larger than 2kB, which was a crazy-small max size for a signature. Make this a more respectable 1Mb so that we can load PKCS-7 signatures with full certificate info included. This wasn't being tested in the self tests as it only affects data read from the remote file descriptor. --- src/fu-engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fu-engine.c b/src/fu-engine.c index c284059bc..8daad9059 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -3060,7 +3060,7 @@ fu_engine_update_metadata (FuEngine *self, const gchar *remote_id, return FALSE; /* read signature */ - bytes_sig = g_input_stream_read_bytes (stream_sig, 0x800, NULL, error); + bytes_sig = g_input_stream_read_bytes (stream_sig, 0x100000, NULL, error); if (bytes_sig == NULL) return FALSE;