Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156520065
D36753.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36753.id.diff
View Options
diff --git a/sys/netpfil/ipfilter/netinet/mlfk_ipl.c b/sys/netpfil/ipfilter/netinet/mlfk_ipl.c
--- a/sys/netpfil/ipfilter/netinet/mlfk_ipl.c
+++ b/sys/netpfil/ipfilter/netinet/mlfk_ipl.c
@@ -383,7 +383,7 @@
ipf_nat_softc_t *nat_softc;
nat_softc = V_ipfmain.ipf_nat_soft;
- arg1 = (void *)((uintptr_t)nat_softc + arg2);
+ arg1 = (void *)((uintptr_t)nat_softc + (size_t)arg2);
return (sysctl_ipf_int(oidp, arg1, 0, req));
}
@@ -397,7 +397,7 @@
ipf_state_softc_t *state_softc;
state_softc = V_ipfmain.ipf_state_soft;
- arg1 = (void *)((uintptr_t)state_softc + arg2);
+ arg1 = (void *)((uintptr_t)state_softc + (size_t)arg2);
return (sysctl_ipf_int(oidp, arg1, 0, req));
}
@@ -411,7 +411,7 @@
ipf_auth_softc_t *auth_softc;
auth_softc = V_ipfmain.ipf_auth_soft;
- arg1 = (void *)((uintptr_t)auth_softc + arg2);
+ arg1 = (void *)((uintptr_t)auth_softc + (size_t)arg2);
return (sysctl_ipf_int(oidp, arg1, 0, req));
}
@@ -425,7 +425,7 @@
ipf_frag_softc_t *frag_softc;
frag_softc = V_ipfmain.ipf_frag_soft;
- arg1 = (void *)((uintptr_t)frag_softc + arg2);
+ arg1 = (void *)((uintptr_t)frag_softc + (size_t)arg2);
return (sysctl_ipf_int(oidp, arg1, 0, req));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 15, 9:02 AM (6 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33078718
Default Alt Text
D36753.id.diff (1 KB)
Attached To
Mode
D36753: ipfilter: Cast uintmax_t values to size_t when adding to a pointer.
Attached
Detach File
Event Timeline
Log In to Comment