ruffle/swf/src
Mike Welsh 3058b88011 swf: Add custom error type for SWF/AVM1 parse errors
Improves the error handling for the swf crate:

 * Custom swf::error::Error type added to handle various errors
   in SWF parsing.
 * Invalid parsing of tags/AVM1 ops results in a Error::ParseError
   that can include info about the underlying failure.
 * Implement Display for these errors. Output descriptive
   names for the tag/opcode when it fails to parse.
 * Handle out of bounds reads in avm1::Reader::read_slice.
   Previously this would panic, now it returns an io::Error.

Closes #85.
2019-10-10 00:55:09 -07:00
..
avm1 swf: Add custom error type for SWF/AVM1 parse errors 2019-10-10 00:55:09 -07:00
avm2 swf: Add custom error type for SWF/AVM1 parse errors 2019-10-10 00:55:09 -07:00
avm1.rs swf: Add custom error type for SWF/AVM1 parse errors 2019-10-10 00:55:09 -07:00
avm2.rs Merge swf-rs into ruffle repo 2019-10-02 17:25:30 -07:00
error.rs swf: Add custom error type for SWF/AVM1 parse errors 2019-10-10 00:55:09 -07:00
lib.rs swf: Add custom error type for SWF/AVM1 parse errors 2019-10-10 00:55:09 -07:00
read.rs swf: Add custom error type for SWF/AVM1 parse errors 2019-10-10 00:55:09 -07:00
tag_code.rs Merge swf-rs into ruffle repo 2019-10-02 17:25:30 -07:00
test_data.rs swf: Fix incorrect parsing of clip actions in SWFv5 2019-10-08 02:13:53 -07:00
types.rs Merge swf-rs into ruffle repo 2019-10-02 17:25:30 -07:00
write.rs swf: Add custom error type for SWF/AVM1 parse errors 2019-10-10 00:55:09 -07:00