Mirko Bonadei 7103e7085f Prevent UB on BufferT::AppendData and ctor.
While [1] partially fixed the problem, UB was still possible when
AppendData was called with size=0 or in one of the constructors.

[1] - https://webrtc-review.googlesource.com/c/src/+/271502

Bug: webrtc:14292
Change-Id: I9196e23687ee82b7bfbe1ed43460d9f99adcd1ee
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/271980
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37814}
2022-08-18 08:53:06 +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-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
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