| 60 | | /* |
| 61 | | * Check if coreboot last image size is 0 or not a multiple of 1k or |
| 62 | | * bigger than the chip or if the pointers to vendor ID or mainboard ID |
| 63 | | * are outside the image of if the start of ID strings are nonsensical |
| 64 | | * (nonprintable and not \0). |
| 65 | | */ |
| 66 | | if ((*walk) == 0 || ((*walk) & 0x3ff) != 0 || *walk > size || |
| 67 | | *(walk - 1) > size || *(walk - 2) > size || |
| 68 | | (!isprint((const char *)(bios + size - *(walk - 1))) && |
| 69 | | ((const char *)(bios + size - *(walk - 1)))) || |
| 70 | | (!isprint((const char *)(bios + size - *(walk - 2))) && |
| 71 | | ((const char *)(bios + size - *(walk - 2))))) { |
| | 60 | if (1) { |