--- zzzz-none-000/linux-4.4.271/scripts/dtc/libfdt/fdt.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/scripts/dtc/libfdt/fdt.c 2023-04-19 10:22:30.000000000 +0000 @@ -78,7 +78,15 @@ { const char *p; - if (fdt_version(fdt) >= 0x11) + if (fdt_version(fdt) >= 0x11 +#ifdef CONFIG_OF_AVM_DT + /* In case the dt was build in v17 but without offset + * information, we verify that the offset contains a non + * zero value. + */ + && fdt_size_dt_struct(fdt) +#endif + ) if (((offset + len) < offset) || ((offset + len) > fdt_size_dt_struct(fdt))) return NULL;