Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F172187397
D22696.id65282.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
D22696.id65282.diff
View Options
Index: sys/amd64/linux32/linux32_sysvec.c
===================================================================
--- sys/amd64/linux32/linux32_sysvec.c
+++ sys/amd64/linux32/linux32_sysvec.c
@@ -741,7 +741,7 @@
if (execpath_len != 0) {
destp -= execpath_len;
- destp = rounddown2(destp, sizeof(void *));
+ destp = rounddown2(destp, sizeof(uint32_t));
imgp->execpathp = destp;
error = copyout(imgp->execpath, (void *)destp, execpath_len);
if (error != 0)
@@ -750,7 +750,7 @@
/* Prepare the canary for SSP. */
arc4rand(canary, sizeof(canary), 0);
- destp -= roundup(sizeof(canary), sizeof(void *));
+ destp -= roundup(sizeof(canary), sizeof(uint32_t));
imgp->canary = destp;
error = copyout(canary, (void *)destp, sizeof(canary));
if (error != 0)
@@ -758,7 +758,7 @@
/* Allocate room for the argument and environment strings. */
destp -= ARG_MAX - imgp->args->stringspace;
- destp = rounddown2(destp, sizeof(void *));
+ destp = rounddown2(destp, sizeof(uint32_t));
ustringp = destp;
if (imgp->auxargs) {
@@ -767,7 +767,7 @@
* array. It has LINUX_AT_COUNT entries.
*/
destp -= LINUX_AT_COUNT * sizeof(Elf32_Auxinfo);
- destp = rounddown2(destp, sizeof(void *));
+ destp = rounddown2(destp, sizeof(uint32_t));
}
vectp = (uint32_t *)destp;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 17, 5:26 PM (2 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39095810
Default Alt Text
D22696.id65282.diff (1 KB)
Attached To
Mode
D22696: Use 4 byte stack alignment instead of 8 byte.
Attached
Detach File
Event Timeline
Log In to Comment