[MXS-379] Incorrect handing of a GWBUF may cause SIGABRT. Created: 2015-09-23  Updated: 2015-11-03  Resolved: 2015-11-03

Status: Closed
Project: MariaDB MaxScale
Component/s: readwritesplit
Affects Version/s: 1.2.1, 1.3.0
Fix Version/s: 1.3.0

Type: Bug Priority: Major
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None


 Description   

In readwritesplit.c:

The GWBUF querybuf routeQuery passes to route_single_stmt is made contiguous inside the latter. If that really is made, then the original buffer is freed (inside gwbuf_make_contiguous). When routeQuery calls gwbuf_free there will be a double free.



 Comments   
Comment by Johan Wikman [ 2015-11-03 ]

Fixed by commit db0e2e881f3477e62950bb5dcc13783b4e680ab5

Generated at Thu Feb 08 03:58:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.