diff for duplicates of <1583425224.3927.6.camel@HansenPartnership.com> diff --git a/a/1.txt b/N1/1.txt index d45d7f7..06523f7 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,7 +1,7 @@ I screwed up the patch This is the proper one with the correct spacing. -==8<8<8<== +====8<8<8<==== From: James Bottomley <James.Bottomley@HansenPartnership.com> Subject: [PATCH v7 1/6] lib: add ASN.1 encoder @@ -140,7 +140,7 @@ index 000000000000..24d45a838887 + data_len -= 2; + + data[0] = _tag(UNIV, PRIM, INT); -+ if (integer = 0) { ++ if (integer == 0) { + *d++ = 0; + goto out; + } @@ -148,7 +148,7 @@ index 000000000000..24d45a838887 + for (i = sizeof(integer); i > 0 ; i--) { + int byte = integer >> (8 * (i - 1)); + -+ if (!found && byte = 0) ++ if (!found && byte == 0) + continue; + + /* @@ -167,7 +167,7 @@ index 000000000000..24d45a838887 + } + + found = true; -+ if (data_len = 0) ++ if (data_len == 0) + return ERR_PTR(-EINVAL); + + *d++ = byte; @@ -192,13 +192,13 @@ index 000000000000..24d45a838887 + return -EINVAL; + + /* quick case */ -+ if (oid = 0) { ++ if (oid == 0) { + *data++ = 0x80; + (*data_len)--; + goto out; + } + -+ while (oid >> start = 0) ++ while (oid >> start == 0) + start -= 7; + + while (start > 0 && *data_len > 0) { @@ -508,7 +508,7 @@ index 000000000000..24d45a838887 + if (IS_ERR(data)) + return data; + -+ /* booleans are 3 bytes: tag, length = 1 and value = 0 or 1 */ ++ /* booleans are 3 bytes: tag, length == 1 and value == 0 or 1 */ + if (data_len < 3) + return ERR_PTR(-EINVAL); + diff --git a/a/content_digest b/N1/content_digest index 0fb3b50..ef6b97d 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\020200305022744.12492-2-James.Bottomley@HansenPartnership.com\0" "From\0James Bottomley <James.Bottomley@hansenpartnership.com>\0" "Subject\0Re: [PATCH v7 1/6] lib: add ASN.1 encoder\0" - "Date\0Thu, 05 Mar 2020 16:20:24 +0000\0" + "Date\0Thu, 05 Mar 2020 08:20:24 -0800\0" "To\0linux-integrity@vger.kernel.org\0" "Cc\0Mimi Zohar <zohar@linux.ibm.com>" Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> @@ -13,7 +13,7 @@ "I screwed up the patch This is the proper one with the correct\n" "spacing.\n" "\n" - "==8<8<8<==\n" + "====8<8<8<====\n" "\n" "From: James Bottomley <James.Bottomley@HansenPartnership.com>\n" "Subject: [PATCH v7 1/6] lib: add ASN.1 encoder\n" @@ -152,7 +152,7 @@ "+\tdata_len -= 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" @@ -160,7 +160,7 @@ "+\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" "+\n" "+\t\t/*\n" @@ -179,7 +179,7 @@ "+\t\t}\n" "+\n" "+\t\tfound = true;\n" - "+\t\tif (data_len = 0)\n" + "+\t\tif (data_len == 0)\n" "+\t\t\treturn ERR_PTR(-EINVAL);\n" "+\n" "+\t\t*d++ = byte;\n" @@ -204,13 +204,13 @@ "+\t\treturn -EINVAL;\n" "+\n" "+\t/* quick case */\n" - "+\tif (oid = 0) {\n" + "+\tif (oid == 0) {\n" "+\t\t*data++ = 0x80;\n" "+\t\t(*data_len)--;\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 && *data_len > 0) {\n" @@ -520,7 +520,7 @@ "+\tif (IS_ERR(data))\n" "+\t\treturn data;\n" "+\n" - "+\t/* booleans are 3 bytes: tag, length = 1 and value = 0 or 1 */\n" + "+\t/* booleans are 3 bytes: tag, length == 1 and value == 0 or 1 */\n" "+\tif (data_len < 3)\n" "+\t\treturn ERR_PTR(-EINVAL);\n" "+\n" @@ -540,4 +540,4 @@ "-- \n" 2.16.4 -e481980c5b1f1dd1598651789d68f2881ae33b060c04da6d845790b5bc49f55a +a01ce782eeb063157982223b7a09be6451d23d99023b468d70da47a90f59037e
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.