void (List<String> errors, String name, ImageDataDirectory idd, ImageSectionHeader ish) { long iddSize = idd.getSize().getValue(); long ishVirtualSize = ish.getVirtualSize().getValue(); if (iddSize != ishVirtualSize) { errors.add(format("Incorrect '%s' sizes: %#x, %#x", name, iddSize, ishVirtualSize)); } long iddAddress = idd.getVirtualAddress().getValue(); long ishAddress = ish.getVirtualAddress().getValue(); if (iddAddress != ishAddress) { errors.add(format("Incorrect '%s' virtual address: %#x, %#x", name, iddAddress, ishAddress)); } }