[PATCH 2/4] libelf: Don't call mempcpy with possible NULL d_buf.