diff --git a/tools/zipalign/ZipEntry.cpp b/tools/zipalign/ZipEntry.cpp index 2f33e23054..a9c2d33107 100644 --- a/tools/zipalign/ZipEntry.cpp +++ b/tools/zipalign/ZipEntry.cpp @@ -130,6 +130,7 @@ void ZipEntry::initNew(const char* fileName, const char* comment) if (mCDE.mFileCommentLength > 0) { /* TODO: stop assuming null-terminated ASCII here? */ mCDE.mFileComment = new uint8_t[mCDE.mFileCommentLength+1]; + assert(comment != NULL); strcpy((char*) mCDE.mFileComment, comment); }