You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2021/09/18 14:22:09 UTC
svn commit: r1893419 - in /apr/apr-util/branches/1.6.x: ./ dbd/apr_dbd_odbc.c
Author: ylavic
Date: Sat Sep 18 14:22:08 2021
New Revision: 1893419
URL: http://svn.apache.org/viewvc?rev=1893419&view=rev
Log:
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
Modified:
apr/apr-util/branches/1.6.x/ (props changed)
apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c
Propchange: apr/apr-util/branches/1.6.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1842824
Modified: apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c?rev=1893419&r1=1893418&r2=1893419&view=diff
==============================================================================
--- apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c (original)
+++ apr/apr-util/branches/1.6.x/dbd/apr_dbd_odbc.c Sat Sep 18 14:22:08 2021
@@ -704,7 +704,7 @@ static apr_status_t odbc_lob_bucket_read
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;