Fix #2544 - rabin2: do not d/l pdb if debug_file_name is null

This commit is contained in:
dequis 2015-05-09 19:05:34 -03:00 committed by pancake
parent 126f92b650
commit 41a5a719f9
1 changed files with 7 additions and 0 deletions

View File

@ -742,6 +742,13 @@ int main(int argc, char **argv) {
SPDBDownloaderOpt opt;
RBinInfo *info = r_bin_get_info (core.bin);
char *path;
if (!info || !info->debug_file_name) {
eprintf ("Can't find debug filename\n");
r_core_fini (&core);
return 1;
}
if (info->file) {
path = r_file_dirname (info->file);
} else {