Ticket #102: fr.idheur.kludge.patch

File fr.idheur.kludge.patch, 915 bytes (added by stuge, 5 years ago)

updated kludge fix for r3408: disable the coreboot image heuristic completely

  • layout.c

     
    5757                walk--; 
    5858        } 
    5959 
    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) { 
    7261                printf("Flash image seems to be a legacy BIOS. Disabling checks.\n"); 
    7362                mainboard_vendor = def_name; 
    7463                mainboard_part = def_name;