-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect and warn on stack overflow (#6928)
* bindings for sys/resource.h * Warn on potential stack overflow in SIGSEGV handler
- Loading branch information
Showing
13 changed files
with
198 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULongLong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULongLong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULongLong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULongLong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = ULongLong | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lib LibC | ||
alias RlimT = Long | ||
|
||
struct Rlimit | ||
rlim_cur : RlimT | ||
rlim_max : RlimT | ||
end | ||
|
||
fun getrlimit(Int, Rlimit*) : Int | ||
|
||
RLIMIT_STACK = 3 | ||
end |
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