Sleigh NPE 'with blocks' with actions section
See original GitHub issueDescribe the bug If an instruction inside a with block does not have an action section and the with block does, a NullPointerException occurs.
with : epsilon [ dummyContext=1; ] {
:dummy is epsilon {}
}
Environment (please complete the following information):
- OS: Microsoft Windows [Version 10.0.18362.418]
- Java Version: 12.0.2
- Ghidra Version: 9.1
Additional context I traced it back to SleighCompiler.g line 601. b needs to be created if nil before the call to sc.pushWith but I’m not familiar with ANTLR so I’m unsure if it needs to happen before entering the withblock or just before calling pushWith.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Release Notes - Ghidra
Key Bindings section. (GT-3446); GUI. Improved mouse wheel scrolling in Listing and Byte Viewers. (GT-3473); GUI. Ghidra's action context ...
Read more >The final word on NPE | plasticstoday.com
The stack cubes indexed to align faces for assembly and the flip tops were pushed into the cap body by ejection action. The...
Read more >Calculation Reference
Area Reduction Calculation. ... Area Reduction Fails to Calculate. ... calculation analyzes data collected from a test that used a friction table and...
Read more >iManager 2.7.5 Readme
Section 2.0, Downloading and Installing the iManager Support Pack ... iManager 2.7.5 blocks users from using a GET method for login requests ...
Read more >Abnormalities in brain structure and behavior in GSK-3alpha ...
In recent years numerous studies have indicated that GSK-3 acts downstream ... The NPE (non pre-exposure) mice were confined to the chamber for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Unfortunate name collision looks like, they don’t have similar design/specs. There are also names that suggest it is example of sleigh/pcode (
define pcodeop pcodeop_one;
)Found a similar NPE related to operands.
crashes with
Moving
reg1
to the constructor like soallows the compilation to finish. After looking at the Sleigh spec, its unclear to me whether operands belong in the with block. Even in that case, the compilation should fail with a proper error, not an NPE.