Commit 3ee85c23 authored by Randell Jesup's avatar Randell Jesup Committed by Pier Angelo Vendrame
Browse files

Bug 2032604: Check Jar entry names for nulls a=dmeehan

parent 11b5b392
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -290,6 +290,10 @@ nsresult nsJARChannel::LookupFile() {
  // have e.g. spaces in their filenames.
  NS_UnescapeURL(mJarEntry);

  if (mJarEntry.FindChar('\0') != -1) {
    return NS_ERROR_MALFORMED_URI;
  }

  if (mJarFileOverride) {
    mJarFile = mJarFileOverride;
    LOG(("nsJARChannel::LookupFile [this=%p] Overriding mJarFile\n", this));