[MXS-1580] Invalid handling of BIT values Created: 2017-12-14 Updated: 2017-12-14 Resolved: 2017-12-14 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | avrorouter |
| Affects Version/s: | 2.1.12 |
| Fix Version/s: | 2.1.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | markus makela | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Even though the values of a BIT field aren't extracted, the number of bytes needs to be calculated correctly. The field size calculation is not correct and can cause a crash when BIT values are mixed with other values. |
| Comments |
| Comment by markus makela [ 2017-12-14 ] |
|
The bytes in the event metadata contain the complete length of the byte. This is the only thing that needs to be used to calculate how many bytes a BIT value uses. |