Project

General

Profile

Actions

Bug #154

open

mainboard: via: epia-m700: NULL pointer dereference (if SeaBIOS is payload)

Added by Martin Kepplinger about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
board support
Target version:
-
Start date:
01/19/2018
Due date:
% Done:

0%

Estimated time:
1.00 h
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

Description

If you have a look at the following part of mainboard/via/epia-m700/wakeup.c
some bells must ring.

#if PAYLOAD_IS_SEABIOS == 1                                                     
    /* WAKE_MEM_INFO inited in get_set_top_available_mem in tables.c. */    
    src =                                                                   
        (unsigned char *)((*(u32 *) WAKE_MEM_INFO) - 64 * 1024 - 0x100000); 
    dest = 0;                                                               

    /*                                                                      
     * If recovered 0-e0000, then when resume, before WinXP turn on the     
     * desktop screen, there is gray background which last 1sec.            
     */                                                                     
    for (i = 0; i < 0xa0000; i++)                                           
            dest[i] = src[i];                                               

No data to display

Actions

Also available in: Atom PDF