xf86-video-mga: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun May 15 14:35:40 UTC 2022
src/mga_dacG.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 638653561df767b052e372821ffd51c457591202
Author: Raphael Isemann <teemperor at gmail.com>
Date: Wed Apr 13 12:14:46 2022 +0200
Fix uninitialized read in MGAEnableSecondOutPut
`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: Raphael Isemann <teemperor at gmail.com>
More information about the xorg-commit
mailing list