mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-943 Resurected and revised Structure.getComponentAt method. Also
revised behavior of Structure.getComponentContaining. Both will now ignore zero-length components.
This commit is contained in:
@@ -142,9 +142,9 @@ public class DataDBTest extends AbstractGenericTest {
|
||||
assertNotNull(c);
|
||||
assertEquals("c1", c.getComponentPathName());
|
||||
|
||||
Data c2 = c.getComponentContaining(4);
|
||||
Data c2 = c.getComponentContaining(4); // zero-length component is ignored
|
||||
assertNotNull(c2);
|
||||
assertEquals("c1.", c2.getComponentPathName()); // zero-bitfield has no name
|
||||
assertEquals("c1.bf1", c2.getComponentPathName());
|
||||
|
||||
Data c3 = c.getComponentContaining(5);
|
||||
assertNotNull(c3);
|
||||
|
||||
Reference in New Issue
Block a user