Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a test that would have triggered set_brk() bug.
- Loading branch information
Showing
4 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
int hello(void); | ||
int main(void) { return hello(); } | ||
int main(void) | ||
{ | ||
/* have a buffer bigger than a page, so we can maybe find out | ||
if we put the data segment in the wrong place. */ | ||
int i; | ||
static char buffer[128 * 1024]; | ||
for (i = 0; i < sizeof (buffer); i++) | ||
buffer[i] = (char) i; | ||
|
||
return hello(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters