commit | e1a9d5dfc51a76482c6de817e3012775386dfe6e | [log] [tgz] |
---|---|---|
author | Adrian Danis <adanis@fuchsia.infra.roller.google.com> | Tue Jun 25 23:02:38 2024 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Jun 25 16:04:29 2024 -0700 |
tree | 2fbbc3b42f152ea5287db9c0dcc9c9d0e4efb2aa | |
parent | 1cba8a12a55cdfccbb668a38c207f63d3184ce50 [diff] |
[roll] Roll fuchsia [test][core] Correct cpu stats test This corrects a test that is attempting to validate that the number of records of the ZX_INFO_CPU_STATS can be queried without needing to provide a buffer. However, the test was doing this by providing the nullptr for the buffer with a non-zero length. This happened to work due to the passed in length being less than the size of a single record and so the kernel not actually attempting to perform any copies to realize that the buffer was invalid. Ideally the kernel would validate every passed in buffer range, but this cannot be efficiently done, and the test was therefore relying on what is essentially undefined behavior. This commit changes to a correct buffer size of 0, which will allow the call to reliably work. Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1069572 Original-Revision: 6eb1b84594217c1e3b3a6dfeefb242f5098f98a9 GitOrigin-RevId: d7dff3e64f634e950fd3db36218f46e2f61b1d4f Change-Id: Ib8830231098d90dfd99169837499646d590803f5
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia
on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party
.