Bug 57498 - segfault on apr_dbd_pgsql.c (apr_dbd_transaction_start, dbd_pgsql_start_transaction)
Summary: segfault on apr_dbd_pgsql.c (apr_dbd_transaction_start, dbd_pgsql_start_trans...
Status: NEW
Alias: None
Product: APR
Classification: Unclassified
Component: APR-util (show other bugs)
Version: 1.5.3
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-26 13:33 UTC by Carlos Barcellos
Modified: 2015-01-26 13:33 UTC (History)
0 users



Attachments
proposed fix on dbd_pgsql_start_transaction (814 bytes, text/plain)
2015-01-26 13:33 UTC, Carlos Barcellos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Barcellos 2015-01-26 13:33:15 UTC
Created attachment 32397 [details]
proposed fix on dbd_pgsql_start_transaction

apr_dbd_transaction_start, which leads to dbd_pgsql_start_transaction is causing a segfault when a connection is broken.

(*trans)->handle is being used on a error condition, where (*trans) is NULL.

Please, see attached patch file with proposed fix.