-
Notifications
You must be signed in to change notification settings - Fork 177
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
CFG analysis with exceptions:null will cause NPE #133
Labels
type: bug
A general bug
Comments
cs-cat
added a commit
to cs-cat/Tai-e
that referenced
this issue
Dec 14, 2024
…b#133) Signed-off-by: cs-cat <118669451+cs-cat@users.noreply.github.com>
Thank you~ I have left a comment on your PR—please take a look. Besises, for an issue, a reproducible example should ideally consist of either a complete Java code snippet or a Tai-e Options file, rather than a partial analysis configuration. For instance: public class Issue133 {
public static void main(String[] args) {
pascal.taie.Main.main(
"-pp",
"-cp", "src/test/resources/controlflow",
"-m", "Exceptions",
"-a", "cfg=dump:true;exception:null;"
);
}
} or optionsFile: null
printHelp: false
classPath:
- src/test/resources/controlflow
appClassPath: []
mainClass: Exceptions
inputClasses: []
javaVersion: 17
prependJVM: true
allowPhantom: false
worldBuilderClass: pascal.taie.frontend.soot.SootWorldBuilder
outputDir: output
preBuildIR: false
worldCacheMode: false
scope: APP
nativeModel: true
planFile: null
analyses:
cfg: dump:true;exception:null;
onlyGenPlan: false
keepResult:
- $KEEP-ALL |
cs-cat
added a commit
to cs-cat/Tai-e
that referenced
this issue
Dec 15, 2024
…b#133) Signed-off-by: cs-cat <118669451+cs-cat@users.noreply.github.com>
zhangt2333
pushed a commit
that referenced
this issue
Dec 15, 2024
fix #133 Signed-off-by: cs-cat <118669451+cs-cat@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
📝 Overall Description
CFG analysis with exceptions:null will cause NPE.
root cause:
satisfyConditions
inConfigs.java
does not handle null values for options.Tai-e/src/main/java/pascal/taie/config/Configs.java
Lines 96 to 100 in 9eb966e
🎯 Expected Behavior
finish CFG analysis
🐛 Current Behavior
🔄 Reproducible Example
⚙️ Tai-e Arguments
🔍 Click here to see Tai-e Options
{{The content of 'output/options.yml' file}}
🔍 Click here to see Tai-e Analysis Plan
{{The content of 'output/tai-e-plan.yml' file}}
📜 Tai-e Log
🔍 Click here to see Tai-e Log
ℹ️ Additional Information
reproduced in 9eb966e (v0.5.1)
The text was updated successfully, but these errors were encountered: