Security patches from Apple:  prevent int overflow when allocating memory
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 3565ab6..74b81da 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -223,7 +223,7 @@
 		return(NULL);
 
 	/* silently 'adjust' out-of-range requests */
-	if ((self->pos + num_bytes) > self->size) {
+	if (num_bytes > self->size - self->pos) {
 		num_bytes -= (self->pos+num_bytes) - self->size;
 	}
 	result = Py_BuildValue("s#", self->data+self->pos, num_bytes);