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