|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
diff -Nrup a/configure b/configure
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
--- a/configure 2019-08-24 19:04:36.000000000 -0600
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
+++ b/configure 2019-12-19 14:22:22.305194031 -0700
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
@@ -14479,7 +14479,7 @@ nocrash_init (void)
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
float x = (float)1.2;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
float y = (float)1.3;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
- float fun () { return x*y; }
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
+ __attribute__ ((noinline,noclone) float fun () { return x*y; }
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
int main()
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
{ nocrash_init();
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
{int val = (* (int (*) ()) fun) ();
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
@@ -15364,7 +15364,7 @@ fi
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
mprotect_prog="$mprotect_prog"'
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
char* area = (char*) malloc(6*pagesize);
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
- char* fault_address = area + pagesize*7/2;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
+ volatile char* fault_address = area + pagesize*7/2;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
'
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
if test -z "$no_mprotect"; then
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
if test "$cross_compiling" = yes; then :
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
@@ -16534,8 +16534,8 @@ else
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
{
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
unsigned int pagesize = getpagesize ();
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
int fd;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
- char *pw;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
- char *px;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
+ volatile char *pw;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
+ volatile char *px;
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
fd = open ("$filename", O_CREAT | O_RDWR | O_TRUNC, 0700);
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
if (fd < 0)
|
|
![](https://seccdn.libravatar.org/avatar/53857e0805011d7cae7e9291c3c7672dd1958db8b0541c307a68d49a98f2e30a?s=16&d=retro) |
fe11b54 |
return 1;
|