Mirko Bonadei 48ac38ec9b Prevent UB on BufferT::AppendData.
As per https://en.cppreference.com/w/cpp/string/byte/memcpy, calling
std::memcpy with dest or src as nullptr is UB.

This CL prevents this from happening and is also looking into
why UBSan didn't catch the issue.

Bug: webrtc:14292
Change-Id: I99833f28ac865719d0dcb02c4de00f33a48c3992
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/271502
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37783}
2022-08-15 10:11:46 +00:00
..
2022-06-28 08:32:13 +00:00
2021-09-21 16:28:38 +00:00
2021-09-21 16:28:38 +00:00
2022-08-15 10:11:46 +00:00
2022-06-28 08:32:13 +00:00
2022-06-07 07:14:06 +00:00
2022-01-28 15:13:45 +00:00
2022-05-11 14:37:04 +00:00
2022-05-11 14:37:04 +00:00
2021-08-31 14:27:49 +00:00
2019-11-26 14:05:20 +00:00
2021-04-22 13:04:53 +00:00
2021-04-16 08:47:17 +00:00
2021-09-21 15:17:26 +00:00
2022-01-25 15:39:53 +00:00
2021-02-10 15:04:55 +00:00
2021-10-13 19:26:10 +00:00