Proper error handling in JVM bytecode parser #924
Labels
subsystem: crucible-jvm
Issues related to Java verification with crucible-jvm
tech debt
Issues that document or involve technical debt
Milestone
The JVM bytecode parser calls the haskell
error
function if it ever has any kind of parse error (see e.g. #920). This is not a nice way to handle problems in user-provided input files.The jvm-parser needs to be redone with proper monadic error handling; reachable code should never call the haskell
error
function. I notice that it uses theData.Binary.Get
library, which provides tworun
functions:runGet
(which callserror
upon failure) andrunGetIncremental
(which returns a sum type). We should be usingrunGetIncremental
.The text was updated successfully, but these errors were encountered: