Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135408213
D20580.id58458.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
513 B
Referenced Files
None
Subscribers
None
D20580.id58458.diff
View Options
Index: vm_mmap.c
===================================================================
--- vm_mmap.c
+++ vm_mmap.c
@@ -257,7 +257,10 @@
/* Adjust size for rounding (on both ends). */
size += pageoff; /* low end... */
- size = (vm_size_t) round_page(size); /* hi end */
+ /* Check for rounding up to zero. */
+ if (round_page(size) < size)
+ return (EINVAL);
+ size = round_page(size); /* hi end */
/* Ensure alignment is at least a page and fits in a pointer. */
align = flags & MAP_ALIGNMENT_MASK;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 10, 2:29 PM (2 m, 5 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25110592
Default Alt Text
D20580.id58458.diff (513 B)
Attached To
Mode
D20580: Make mmap fail when len parameter, round up to page size, becomes zero
Attached
Detach File
Event Timeline
Log In to Comment