From 4f0db3d425cdbad780b709164fdea2bb3621c203 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 4 Oct 2018 15:13:54 +0000 Subject: [PATCH] Untested but presumably this code was also -- found by Coverity: * dbd/apr_dbd_odbc.c (odbc_lob_bucket_read): Fix to allocate sizeof(apr_bucket) not sizeof(apr_bucket *). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1842824 13f79535-47bb-0310-9956-ffa450edef68 --- dbd/apr_dbd_odbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbd/apr_dbd_odbc.c b/dbd/apr_dbd_odbc.c index 65306792026..552483d9baa 100644 --- a/dbd/apr_dbd_odbc.c +++ b/dbd/apr_dbd_odbc.c @@ -689,7 +689,7 @@ static apr_status_t odbc_lob_bucket_read(apr_bucket *e, const char **str, if (!eos) { /* Create a new LOB bucket to append and append it */ - nxt = apr_bucket_alloc(sizeof(apr_bucket *), e->list); + nxt = apr_bucket_alloc(sizeof *nxt, e->list); APR_BUCKET_INIT(nxt); nxt->length = -1; nxt->data = e->data;