Blame SOURCES/ElectricFence-mmap-size.patch
|
|
94c734 |
Size is, correctly, size_t and mmap, correctly, takes
|
|
|
94c734 |
size_t as the size argument; the cast to int flunks
|
|
|
94c734 |
64bit thinking.
|
|
|
94c734 |
|
|
|
94c734 |
|
|
|
94c734 |
diff -Naur ElectricFence-2.2.2/page.c ElectricFence-2.2.3/page.c
|
|
|
94c734 |
--- ElectricFence-2.2.2/page.c 2007-03-16 13:20:44.000000000 -0400
|
|
|
94c734 |
+++ ElectricFence-2.2.3/page.c 2007-03-16 13:23:28.000000000 -0400
|
|
|
94c734 |
@@ -70,7 +70,7 @@
|
|
|
94c734 |
*/
|
|
|
94c734 |
allocation = (caddr_t) mmap(
|
|
|
94c734 |
startAddr
|
|
|
94c734 |
- ,(int)size
|
|
|
94c734 |
+ ,size
|
|
|
94c734 |
,PROT_READ|PROT_WRITE
|
|
|
94c734 |
,MAP_PRIVATE|MAP_ANONYMOUS
|
|
|
94c734 |
,-1
|
|
|
94c734 |
@@ -122,7 +122,7 @@
|
|
|
94c734 |
*/
|
|
|
94c734 |
allocation = (caddr_t) mmap(
|
|
|
94c734 |
startAddr
|
|
|
94c734 |
- ,(int)size
|
|
|
94c734 |
+ ,size
|
|
|
94c734 |
,PROT_READ|PROT_WRITE
|
|
|
94c734 |
,MAP_PRIVATE
|
|
|
94c734 |
,devZeroFd
|