commit | dcb7b7bb7bd478b8449174dd31164ead57e2daf7 | [log] [tgz] |
---|---|---|
author | Sam Hansen <hansens@google.com> | Tue Feb 21 18:52:26 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 21 18:52:26 2023 +0000 |
tree | 5e932fdc6e313d440ad816365578dad734da4617 | |
parent | d0031b8b90d7a77600838586dc0c6db2c34b3426 [diff] |
[usb] usb-peripheral not accounting uninitialized content In some situations we're strncpy()ing from data stored in a std::string using std::string::c_str() in the amount of std::string::size(). This only copies the string contents (trailing null excluded). If there happens to be junk in the destiation, it will show up in the output. Bug: 121142 Change-Id: I80e8586c0a35f1e7271892109cc0b91ba899541b Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/803250 Commit-Queue: Sam Hansen <hansens@google.com> Reviewed-by: Ruby Zhuang <rdzhuang@google.com> Reviewed-by: Yegor Pomortsev <ypomortsev@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.