Dont use binbuf in the LE parser

This commit is contained in:
pancake 2023-03-05 12:18:45 +01:00
parent 48314a1e53
commit ec967e530d
1 changed files with 1 additions and 6 deletions

View File

@ -675,12 +675,7 @@ R_IPI RBinLEObj *r_bin_le_new_buf(RBuffer *buf) {
bin->arch = __get_arch (bin);
{
/* dim objcnt */
ut64 maxcount = r_buf_size (bin->buf);
if (maxcount == UT64_MAX) {
maxcount /= sizeof (LE_object_entry);
} else {
maxcount = UT16_MAX;
}
ut64 maxcount = 0xfffff / sizeof (LE_object_entry);
if (h->objcnt > maxcount) {
h->objcnt = maxcount;
}