diff for duplicates of <1575936367.31378.52.camel@HansenPartnership.com> diff --git a/a/1.txt b/N1/1.txt index 41b65c2..c2e3779 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -104,14 +104,14 @@ index 000000000000..768cabf8bf76 + len =- 2; + + data[0] = _tag(UNIV, PRIM, INT); -+ if (integer = 0) { ++ if (integer == 0) { + *d++ = 0; + goto out; + } + for (i = sizeof(integer); i > 0 ; i--) { + int byte = integer >> (8*(i-1)); + -+ if (!found && byte = 0) ++ if (!found && byte == 0) + continue; + found = true; + if (byte & 0x80) { @@ -122,7 +122,7 @@ index 000000000000..768cabf8bf76 + *d++ = 0; + len--; + } -+ if (WARN(len = 0, ++ if (WARN(len == 0, + "BUG buffer too short in asn1_encode_integer")) + return; + *d++ = byte; @@ -141,12 +141,12 @@ index 000000000000..768cabf8bf76 + unsigned char *data = *_data; + + /* quick case */ -+ if (oid = 0) { ++ if (oid == 0) { + *data++ = 0x80; + goto out; + } + -+ while (oid >> start = 0) ++ while (oid >> start == 0) + start -= 7; + + while (start > 0) { diff --git a/a/content_digest b/N1/content_digest index ed5a0c0..fe22afc 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01575936272.31378.50.camel@HansenPartnership.com\0" "From\0James Bottomley <James.Bottomley@hansenpartnership.com>\0" "Subject\0[PATCH v2 2/8] lib: add asn.1 encoder\0" - "Date\0Tue, 10 Dec 2019 00:06:07 +0000\0" + "Date\0Mon, 09 Dec 2019 16:06:07 -0800\0" "To\0linux-integrity@vger.kernel.org\0" "Cc\0Mimi Zohar <zohar@linux.ibm.com>" Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> @@ -115,14 +115,14 @@ "+\tlen =- 2;\n" "+\n" "+\tdata[0] = _tag(UNIV, PRIM, INT);\n" - "+\tif (integer = 0) {\n" + "+\tif (integer == 0) {\n" "+\t\t*d++ = 0;\n" "+\t\tgoto out;\n" "+\t}\n" "+\tfor (i = sizeof(integer); i > 0 ; i--) {\n" "+\t\tint byte = integer >> (8*(i-1));\n" "+\n" - "+\t\tif (!found && byte = 0)\n" + "+\t\tif (!found && byte == 0)\n" "+\t\t\tcontinue;\n" "+\t\tfound = true;\n" "+\t\tif (byte & 0x80) {\n" @@ -133,7 +133,7 @@ "+\t\t\t*d++ = 0;\n" "+\t\t\tlen--;\n" "+\t\t}\n" - "+\t\tif (WARN(len = 0,\n" + "+\t\tif (WARN(len == 0,\n" "+\t\t\t \"BUG buffer too short in asn1_encode_integer\"))\n" "+\t\t\treturn;\n" "+\t\t*d++ = byte;\n" @@ -152,12 +152,12 @@ "+\tunsigned char *data = *_data;\n" "+\n" "+\t/* quick case */\n" - "+\tif (oid = 0) {\n" + "+\tif (oid == 0) {\n" "+\t\t*data++ = 0x80;\n" "+\t\tgoto out;\n" "+\t}\n" "+\n" - "+\twhile (oid >> start = 0)\n" + "+\twhile (oid >> start == 0)\n" "+\t\tstart -= 7;\n" "+\n" "+\twhile (start > 0) {\n" @@ -337,4 +337,4 @@ "-- \n" 2.16.4 -1e3283c23fa1ae6fe1a4116e41d2484171ae2abbcc824195f4b34e7bfd70d756 +791d597d47af4cf413e660dd93297ac3e52f53e82dc4ea10146e4a260ae47d17
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.