Added support for faulty malloc().