|
@@ -439,7 +439,13 @@ let parse_swf com file =
|
|
|
end else
|
|
end else
|
|
|
IO.input_channel (open_in_bin file)
|
|
IO.input_channel (open_in_bin file)
|
|
|
in
|
|
in
|
|
|
- let h, tags = (try Swf.parse ch with _ -> failwith ("The input swf " ^ file ^ " is corrupted")) in
|
|
|
|
|
|
|
+ let h, tags = try
|
|
|
|
|
+ Swf.parse ch
|
|
|
|
|
+ with Out_of_memory ->
|
|
|
|
|
+ failwith ("Out of memory while parsing " ^ file)
|
|
|
|
|
+ | _ ->
|
|
|
|
|
+ failwith ("The input swf " ^ file ^ " is corrupted")
|
|
|
|
|
+ in
|
|
|
IO.close_in ch;
|
|
IO.close_in ch;
|
|
|
List.iter (fun t ->
|
|
List.iter (fun t ->
|
|
|
match t.tdata with
|
|
match t.tdata with
|