From a67f27a092d947c3d1eb57b02fc461dd855fbd45 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 29 Sep 2020 11:31:45 +0200 Subject: #1004 Fix integer overflow in datasize ogClient datasize is now in bytes, update format to fix a possible overflow. --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client.c b/src/client.c index 2b67e54..7c66a38 100644 --- a/src/client.c +++ b/src/client.c @@ -393,7 +393,7 @@ static int update_image_info(struct og_dbi *dbi, const char *image_id, result = dbi_conn_queryf(dbi->conn, "UPDATE imagenes" " SET clonator='%s', compressor='%s'," - " filesystem='%s', datasize=%d" + " filesystem='%s', datasize=%lld" " WHERE idimagen=%s", clonator, compressor, filesystem, datasize, image_id); -- cgit v1.2.3-18-g5258