| Summary: | Registry de-references NULL if no loggers are configured | ||
|---|---|---|---|
| Product: | [Technology] RTSC | Reporter: | Dave Russo <d-russo> |
| Component: | Runtime | Assignee: | Dave Russo <d-russo> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P1 | CC: | c-mccormick, cring, jhead |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:3.20.04 | ||
|
Description
Dave Russo
The person who fix verifies needs to add tests for the Registry module. File new bug to run xdc.runtime tests on x86 Linux target. fixed in 3.21 and 3.20 streams (r1138 and r1139)
Registry.c used
desc->mask = *Module__DGSMASK;
when it should have used
desc->mask = Registry_Module_getMask();
*** Bug 314926 has been marked as a duplicate of this bug. *** Verified by code inspection in xdc-w10. Also added a new test to the regresstest tree, RegistryNullLogger. However, this test case doesn't throw any errors when run on a typical target--dereferencing null is harmless. This test would need to be run on a target such as x86 which will complain when null is dereferenced. An embedded test can verify that the mask matches the mask of the Registry module. The de-reference of NULL will almost certainly put garbage into the registered module's diags mask. Shipped in XDCtools 3.20.04 |