From 73d395c2bea4bde0b9503a1e6fbfa2bf13a3e1af Mon Sep 17 00:00:00 2001 From: xarkes Date: Mon, 7 May 2018 17:16:51 +0200 Subject: [PATCH] Fix -B default value --- src/AnalThread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AnalThread.cpp b/src/AnalThread.cpp index 9d3b9561..feb6209d 100644 --- a/src/AnalThread.cpp +++ b/src/AnalThread.cpp @@ -47,7 +47,9 @@ void AnalThread::run() const auto optionsDialog = dynamic_cast(parent()); const auto &ui = optionsDialog->ui; bool va = ui->vaCheckBox->isChecked(); - ut64 binLoadAddr = Core()->math(ui->entry_loadOffset->text()); // Where the bin header is located in the file (-B) + ut64 binLoadAddr = UT64_MAX; // Where the bin header is located in the file (-B) + if (ui->entry_loadOffset->text().length() > 0) + binLoadAddr = Core()->math(ui->entry_loadOffset->text()); ut64 mapAddr = Core()->math(ui->entry_mapOffset->text()); // Where to map the file once loaded (-m) interrupted = false; emit updateProgress(tr("Loading binary..."));