radare/radare2 — pull request #331 by deeso (2013-11-09 23:23:37+00:00)
Title: Bug fix for binary loading from a plugin

These changes make it possible to load a binary directly from the IO Plugin. Before when a binary was loaded, the IO Plugin that loaded the file would be ignored, and the binary would not be loaded properly.

Ex. Java class in a jar file. When the zip plugin (to be included in another pull) was used, the requested file extracted from the Zip would not be loaded from the IO Plugin's data. The r_bin_load function would try to load the file from disk, ignoring the IO plugin's access to the binary which may be in a buffer or shared memory but not on disk.

- Added fixes to load bins from IO Plugins
- Fixed filename extraction so that IO Plugin names are respected instead of extracting out the URIs
- Fixed regression testing for filenames since the above change cmd_info and file_malloc those tests