Commit 7ba0454d authored by Kai Engert's avatar Kai Engert
Browse files

Backout bug 345094, revision 77ce8faa1906, r=bsmith

parent 39cd5e1b
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
<html><head><script>
function FUZZ(s) {
  try { eval(s); } catch (e) {}
}

function boom() {
  FUZZ("window.crypto.generateCRMFRequest(1048574, 1048578, 256, '', 2)")
}
</script>
</head>
<body onload="boom()">
</body>
</html>
+0 −1
Original line number Diff line number Diff line
asserts-if(browserIsRemote,1) load 327524-1.html # bug 582297
load 345094.html
asserts-if(browserIsRemote,1) load 398665-1.html # bug 582297
+2 −8
Original line number Diff line number Diff line
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
@@ -563,14 +562,9 @@ PL_Base64DecodeBuffer (const char *src, PRUint32 srclen, unsigned char *dest,
    PLBase64Decoder *data = NULL;
    PRStatus status;

    if (srclen == 0) {
	*output_destlen = 0;
	if (dest == NULL) {
	    /* PR_Malloc(0) is undefined */
	    return (unsigned char *) PR_Malloc(1);
	}
    PR_ASSERT(srclen > 0);
    if (srclen == 0)
	return dest;
    }

    /*
     * How much space could we possibly need for decoding this input?