Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 150263 Details for
Bug 232695
Bad cast in ElectricFence cause mmap to fail
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to remove bad casts
ElectricFence-mmap-size.patch (text/plain), 614 bytes, created by
George Beshers
on 2007-03-16 17:51:39 UTC
(
hide
)
Description:
patch to remove bad casts
Filename:
MIME Type:
Creator:
George Beshers
Created:
2007-03-16 17:51:39 UTC
Size:
614 bytes
patch
obsolete
>Size is, correctly, size_t and mmap, correctly, takes >size_t as the size argument; the cast to int flunks >64bit thinking. > > >diff -Naur ElectricFence-2.2.2/page.c ElectricFence-2.2.3/page.c >--- ElectricFence-2.2.2/page.c 2007-03-16 13:20:44.000000000 -0400 >+++ ElectricFence-2.2.3/page.c 2007-03-16 13:23:28.000000000 -0400 >@@ -70,7 +70,7 @@ > */ > allocation = (caddr_t) mmap( > startAddr >- ,(int)size >+ ,size > ,PROT_READ|PROT_WRITE > ,MAP_PRIVATE|MAP_ANONYMOUS > ,-1 >@@ -122,7 +122,7 @@ > */ > allocation = (caddr_t) mmap( > startAddr >- ,(int)size >+ ,size > ,PROT_READ|PROT_WRITE > ,MAP_PRIVATE > ,devZeroFd
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 232695
: 150263