search for: corruptedbitcode

Displaying 4 results from an estimated 4 matches for "corruptedbitcode".

2016 Feb 09
3
[RFC] Error handling in LLVM libraries.
...to differentiate are "this is not a bitcode file at > all" and "the file is broken", which we do with the following enum + > std::error_code. By contrast, in my system this would be: class InvalidBitcodeSignature : TypedErrorInfo<InvalidBitcodeSignature> {}; class CorruptedBitcode : TypedErrorInfo<CorruptedBitcode> { public: CorruptedBitcode(std::string Msg) : Msg(Msg) {} void log(raw_ostream &OS) const override { OS << Msg; } private: std::string Msg; }; Once you factor out the need to define an error category, I suspect my system actually requires le...
2016 Feb 10
5
[RFC] Error handling in LLVM libraries.
...verable errors > can be > > logged (if the client wants to do so), but they don't have to be. > > ... > > > By contrast, in my system this would be: > > > > class InvalidBitcodeSignature : TypedErrorInfo<InvalidBitcodeSignature> > {}; > > class CorruptedBitcode : TypedErrorInfo<CorruptedBitcode> { > > public: > > CorruptedBitcode(std::string Msg) : Msg(Msg) {} > > void log(raw_ostream &OS) const override { OS << Msg; } > > private: > > std::string Msg; > > }; > > This highlights why I think i...
2016 Feb 03
6
[RFC] Error handling in LLVM libraries.
Hi Mehdi, > If you subclass a diagnostic right now, isn’t the RTTI information available to the handler, which can then achieve the same dispatching / custom handling per type of diagnostic? > (I’m not advocating the diagnostic system, which I found less convenient to use than what you are proposing) I have to confess I haven't looked at the diagnostic classes closely. I'll take a
2015 May 29
9
[LLVMdev] Error handling in LLVMObject library
Hi everyone, Having proper error handling in LLVM's Object parsing library is a nice thing by itself, but it would additionally allow us to find bugs by fuzzing (see r238451 that adds llvm-dwarfdump-fuzzer tool), for which the clean input validation is essential. This is a generic discussion of state of affairs. I want to do some progress in fuzzing before we finish it (especially if we