diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2021-09-18 14:22:08 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2021-09-18 14:22:08 +0000 |
commit | d230af71c516bc946d582d1a38c164e696319e16 (patch) | |
tree | f53323fbd28b0448d366fd7e4f301db8500cc2cd | |
parent | bcc2a35895b9c5c763250c17d0c3924e98843622 (diff) | |
download | libapr-util-d230af71c516bc946d582d1a38c164e696319e16.tar.gz |
Merge r1842824 from trunk:
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 *).
Submitted by: jorton
Reviewed by: ylavic
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/1.6.x@1893419 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | dbd/apr_dbd_odbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbd/apr_dbd_odbc.c b/dbd/apr_dbd_odbc.c index 8a3c0fdc..4aeb541f 100644 --- a/dbd/apr_dbd_odbc.c +++ b/dbd/apr_dbd_odbc.c @@ -704,7 +704,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; |