[MXS-326] Return-value of strdup must be checked. Created: 2015-08-21 Updated: 2017-12-01 Resolved: 2016-06-16 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Johan Wikman | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In general the return value of strdup is not checked. |
| Comments |
| Comment by Johan Wikman [ 2016-06-16 ] |
|
All uses of strdup now either check the return value or have been replaced with calls to mxs_strdup that behaves like strdup except that it takes the process down if the allocation fails. |