Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 33471643 simulator + apt - adu_core_interfaces_unit_tests failing #68

Closed
wants to merge 8 commits into from

Conversation

jw-msft
Copy link
Contributor

@jw-msft jw-msft commented May 26, 2021

ADUC_UT_ReportPropertyAsyncValues::set() does memcpy() call into reportedData fixed-array without null-terminating it (g_SendReportedStateValues instance is shared across test methods in adu_core_interface_ut.cpp). For simulator platform layer and microsoft/apt content handler, the test right before the one that fails has a longer reportedData memcpy'ed.

The fix is to put a null-terminator after the memcpy'ed string contents and, for good measure, throw if it would exceed the length of reportedData.

ValOlson and others added 8 commits March 18, 2021 15:15
* Update our documentation from source of truth main.c

* Revision on PR feedback

* markdown nit

* Revision on suggested nits
* Update how-to-run-agent.md

* Update how-to-build-agent-code.md

* Update how-to-run-agent.md

* Update how-to-run-agent.md

* Update how-to-build-agent-code.md

* Update how-to-run-agent.md

* Update how-to-build-agent-code.md

* Add 'adu' and 'do' user setup instruction.

Co-authored-by: Nox-MSFT <55153324+Nox-MSFT@users.noreply.github.com>
Co-authored-by: Nicholas Hemstreet <62158276+nihemstr@users.noreply.github.com>
* Update how-to-run-agent.md

* Update how-to-run-agent.md

* Update how-to-run-agent.md

* Update how-to-run-agent.md
* Update SUPPORT.md

* Update SUPPORT.md
@jw-msft jw-msft requested a review from a team May 26, 2021 06:01
@shiyi-peng
Copy link
Contributor

shiyi-peng commented May 26, 2021

The fix looks good!
About the target branch, which shouldnt be main: check out our branching strategy by JeffM
Also, for our day to day work we will do it https://github.com/Azure/adu-private-preview/ in our internal repo. I checked and you should have access. We are in the middle of doing the transit (with a recent release just out, but in the middle of a quarter) so it might be a bit confusing, so we can bring it offline.

@jw-msft jw-msft changed the base branch from main to release/2021-q2 May 26, 2021 07:21
@jw-msft jw-msft closed this May 26, 2021
@jw-msft
Copy link
Contributor Author

jw-msft commented May 26, 2021

Closing to reopen with new target branch (changing base branch didn't work out).

@jw-msft jw-msft deleted the user/jw-msft/testStability branch May 26, 2021 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants