Skip to content
  • Raphael Isemann's avatar
    Fix uninitialized read in MGAEnableSecondOutPut · 63865356
    Raphael Isemann authored
    
    
    `MGAGRestore` allocated `ModeInfo` without initializing its memory and then
    passes it into `MGAEnableSecondOutPut` via `MGAEnableSecondOutPut(pScrn, &ModeInfo);`.
    
    `MGAEnableSecondOutPut` then reads the unitialized memory in the line
    `if ( !(pModeInfo->flSignalMode & POS_HSYNC) )`.
    
    This patch just zeroes the memory to prevent those branches to be randomly
    taken.
    
    Signed-off-by: default avatarRaphael Isemann <teemperor@gmail.com>
    63865356