[CONC-514] ma_net_write_buff() invokes memcpy() on null pointer Created: 2020-10-30 Updated: 2021-10-13 Resolved: 2020-11-02 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 3.1.10 |
| Fix Version/s: | 3.1.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | UBSAN | ||
| Description |
|
When the function ma_net_write_buff() is invoked with len=0, it may call memcpy() with a null pointer, which is flagged in WITH_UBSAN builds. |