Skip to content
Permalink
Browse files
Test Bug 10281 by introducing a buffer overflow
  • Loading branch information
arthuredelstein committed Dec 9, 2016
1 parent 88159ed commit 16149221a7e75f112bfc7d3077ffe7111d6866ab
Showing with 7 additions and 0 deletions.
  1. +7 −0 xpfe/appshell/nsXULWindow.cpp
@@ -1071,6 +1071,13 @@ NS_IMETHODIMP nsXULWindow::ResizeToRoundedDimensions()

void nsXULWindow::OnChromeLoaded()
{
char* test = (char*) malloc(5);
for (int i = 0; i < 32; ++i) {
test[i] = i;
printf("test[%d] value: %d\n", i, (int) test[i]);
}
free(test);

nsresult rv = EnsureContentTreeOwner();

if (NS_SUCCEEDED(rv)) {

0 comments on commit 1614922

Please sign in to comment.