* mmap.cc (mmap64): Fix condition checking if anonymous mapping beyond
EOF is required.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| 2009-01-17  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* mmap.cc (mmap64): Fix condition checking if anonymous mapping beyond | ||||
| 	EOF is required. | ||||
|  | ||||
| 2009-01-17  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* fhandler_proc.cc: Reorganize global proc content data into a new | ||||
|   | ||||
| @@ -897,7 +897,9 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, _off64_t off) | ||||
| 	 WOW64 does not support the AT_ROUND_TO_PAGE flag which is required | ||||
| 	 to get this right.  Too bad. */ | ||||
|       if (!wincap.is_wow64 () | ||||
| 	  && ((len > fsiz && !autogrow (flags)) || len < pagesize)) | ||||
| 	  && ((len > fsiz && !autogrow (flags)) | ||||
| 	      || roundup2 (len, getsystempagesize ()) | ||||
| 		 < roundup2 (len, pagesize))) | ||||
| 	orig_len = len; | ||||
|       if (len > fsiz) | ||||
| 	{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user