/[pkgs]/devel/ElectricFence/ElectricFence-mmap-size.patch
ViewVC logotype

Contents of /devel/ElectricFence/ElectricFence-mmap-size.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Mar 16 19:03:41 2007 UTC (2 years, 8 months ago) by pmachata
Branch: MAIN
CVS Tags: ElectricFence-2_2_2-25_fc9, F-12-split, F-10-split, F-7-split, F-11-split, ElectricFence-2_2_2-25, ElectricFence-2_2_2-22, ElectricFence-2_2_2-23, ElectricFence-2_2_2-26_fc11, ElectricFence-2_2_2-27_fc12, F-9-split, F-8-split, HEAD
File MIME type: text/x-patch
- Remove bad cast in ElectricFence mmap (George Beshers)
- Resolves: #232695
1 Size is, correctly, size_t and mmap, correctly, takes
2 size_t as the size argument; the cast to int flunks
3 64bit thinking.
4
5
6 diff -Naur ElectricFence-2.2.2/page.c ElectricFence-2.2.3/page.c
7 --- ElectricFence-2.2.2/page.c 2007-03-16 13:20:44.000000000 -0400
8 +++ ElectricFence-2.2.3/page.c 2007-03-16 13:23:28.000000000 -0400
9 @@ -70,7 +70,7 @@
10 */
11 allocation = (caddr_t) mmap(
12 startAddr
13 - ,(int)size
14 + ,size
15 ,PROT_READ|PROT_WRITE
16 ,MAP_PRIVATE|MAP_ANONYMOUS
17 ,-1
18 @@ -122,7 +122,7 @@
19 */
20 allocation = (caddr_t) mmap(
21 startAddr
22 - ,(int)size
23 + ,size
24 ,PROT_READ|PROT_WRITE
25 ,MAP_PRIVATE
26 ,devZeroFd

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2