mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Fix undefined dereference in JSON decoding for relro
This commit is contained in:
parent
5931097b66
commit
9954f31a32
@ -71,10 +71,11 @@ void Dashboard::updateContents()
|
|||||||
this->ui->endianEdit->setText(item2["endian"].toString());
|
this->ui->endianEdit->setText(item2["endian"].toString());
|
||||||
this->ui->compiledEdit->setText(item2["compiled"].toString());
|
this->ui->compiledEdit->setText(item2["compiled"].toString());
|
||||||
this->ui->bitsEdit->setText(QString::number(item2["bits"].toDouble()));
|
this->ui->bitsEdit->setText(QString::number(item2["bits"].toDouble()));
|
||||||
|
if (item2["relro"].isUndefined()) {
|
||||||
QString relro=item2["relro"].toString().split(" ").at(0);
|
QString relro=item2["relro"].toString().split(" ").at(0);
|
||||||
relro[0]=item2["relro"].toString().split(" ").at(0)[0].toUpper();
|
relro[0]=relro[0].toUpper();
|
||||||
this->ui->relroEdit->setText(relro);
|
this->ui->relroEdit->setText(relro);
|
||||||
|
}
|
||||||
|
|
||||||
this->ui->baddrEdit->setText(QString::number(item2["baddr"].toDouble()));
|
this->ui->baddrEdit->setText(QString::number(item2["baddr"].toDouble()));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user