I see a problem with this new safe_emalloc() problem. The code base of 4.3 and 5 are drifting apart due to the fact that the function in question wasn't MFBed.
So anybody with karma should at least introduce the macro solution into the appropriate places.
marcus