[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 |