Update rizin to latest dev (#3266)

Some fields were changed from RzList to RzPVector in Rizin.
This commit is contained in:
Florian Märkl 2023-11-19 12:15:42 +01:00 committed by GitHub
parent 7256fbb00e
commit 653435cb14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

2
rizin

@ -1 +1 @@
Subproject commit 444000416cc929d4ce67116a46eaeee1d8a5b4fd Subproject commit b9851b7c24ab5d3cc2d0192d4b8f8859cad2999c

View File

@ -3226,15 +3226,12 @@ QList<HeaderDescription> CutterCore::getAllHeaders()
if (!bf) { if (!bf) {
return {}; return {};
} }
const RzList *fields = rz_bin_object_get_fields(bf->o); const RzPVector *fields = rz_bin_object_get_fields(bf->o);
if (!fields) { if (!fields) {
return {}; return {};
} }
RzListIter *iter;
RzBinField *field;
QList<HeaderDescription> ret; QList<HeaderDescription> ret;
for (auto field : CutterPVector<RzBinField>(fields)) {
CutterRzListForeach (fields, iter, RzBinField, field) {
HeaderDescription header; HeaderDescription header;
header.vaddr = field->vaddr; header.vaddr = field->vaddr;
header.paddr = field->paddr; header.paddr = field->paddr;
@ -3242,7 +3239,6 @@ QList<HeaderDescription> CutterCore::getAllHeaders()
header.name = field->name; header.name = field->name;
ret << header; ret << header;
} }
return ret; return ret;
} }

View File

@ -134,11 +134,11 @@ void Dashboard::updateContents()
setPlainText(ui->percentageLineEdit, QString::number(precentage) + "%"); setPlainText(ui->percentageLineEdit, QString::number(precentage) + "%");
ui->libraryList->setPlainText(""); ui->libraryList->setPlainText("");
const RzList *libs = bf ? rz_bin_object_get_libs(bf->o) : nullptr; const RzPVector *libs = bf ? rz_bin_object_get_libs(bf->o) : nullptr;
if (libs) { if (libs) {
QString libText; QString libText;
bool first = true; bool first = true;
for (const auto &lib : CutterRzList<char>(libs)) { for (const auto &lib : CutterPVector<char>(libs)) {
if (!first) { if (!first) {
libText.append("\n"); libText.append("\n");
} }