Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf74b00d

Browse files
joschockspbrogan
authored andcommitted
Fix an issue where an empty grid can cause a bad pointer dereference (microsoft#8)
1 parent3a579a9 commitf74b00d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎MsGraphicsPkg/DisplayEngineDxe/FormDisplay.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,10 @@ CreateFormControls (IN FORM_DISPLAY_ENGINE_FORM *FormData,
10941094
// Signal that the current grid no longer has scope. Controls added from this point forward will be added
10951095
// directly to the canvas (unless another grid is created).
10961096
//
1097-
if (LocalGrid->m_GridInitialHeight!=LocalGrid->m_GridCellHeight) {
1097+
if (LocalGrid==NULL) {
1098+
DEBUG ((DEBUG_ERROR,"ERROR [DE]: GridEndOp without valid StartGridOp\n"));
1099+
}
1100+
if (LocalGrid!=NULL&&LocalGrid->m_GridInitialHeight!=LocalGrid->m_GridCellHeight) {
10981101
DEBUG ((DEBUG_ERROR,"ERROR [DE]: Grid elements larger than initial grid height. Correct VFR StartGridOp value.\r\n"));
10991102
}
11001103
GridScope= FALSE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp