Page MenuHomePhabricator

Cast the fifth arg to mremap to void *

Authored by on Feb 2 2016, 7:44 AM.



Since the prototype of mremap is

void *mremap(void *old_address, size_t old_size, size_t new_size,
	     int flags, ... /* void *new_address*/);

we need to cast new_address to void * when calling mremap. Otherwise,
the wrong value will be passed to mremap on x32.

Diff Detail


Event Timeline updated this revision to Diff 46653.Feb 2 2016, 7:44 AM retitled this revision from to Cast the fifth arg to mremap to void * . updated this object. added reviewers: kcc, eugenis. added a subscriber: llvm-commits.
samsonov accepted this revision.Feb 2 2016, 9:56 AM
samsonov added a reviewer: samsonov.
samsonov added a subscriber: samsonov.


This revision is now accepted and ready to land.Feb 2 2016, 9:56 AM

Please check it in for me. Thanks.

This revision was automatically updated to reflect the committed changes.