align memory and protect rw, changed realloc size to actual size requested
align memory and protect rw, changed realloc size to actual size requested

bphaslett/libsafe-nmalloc,bphaslett/libsafe-nmalloc