commit | 53c2f3e2569d7e582d3dd3056ceb9b2c3b8197b2 | [log] [tgz] |
---|---|---|
author | Kevin Zeng <zengk@google.com> | Wed Jun 16 23:38:15 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 17 20:44:55 2021 +0000 |
tree | 6fff0893ef43f1018d65f2e8e1bf27d9f8accf5b | |
parent | 88bedd00384aed9686f2ae38426cba884a6b5d43 [diff] |
pw_i2c: Fix invalid copy Add error checking for copying expected rx data to rx buffer in MockInitiator to prevent potential seg faults. Testing: Create a failed expectation case for reading data. See the assert instead of seg fault. Change-Id: I856534b15ecc7f1971af034535264be0f1615fca Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/49481 Reviewed-by: Ewout van Bekkum <ewout@google.com> Commit-Queue: Kevin Zeng <zengk@google.com>
See our website: http://pigweed.dev