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


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