ObjFW  Diff

Differences From Artifact [5ba0c45db7]:

  • File src/OFASN1BitString.m — part of check-in [4507e0bee3] at 2021-04-30 21:56:27 on branch asn1 — Merge trunk into branch "asn1" (user: js size: 4206) [more...]

To Artifact [bf8a8b6b76]:

  • File src/OFASN1BitString.m — part of check-in [d8ef56254d] at 2022-11-07 00:20:31 on branch asn1 — Merge trunk into branch "asn1" (user: js size: 4206) [more...]

87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
			@throw [OFInvalidFormatException exception];

		if (SIZE_MAX / 8 < count - 1)
			@throw [OFOutOfRangeException exception];

		length = (count - 1) * 8;
		bitString = [DEREncodedContents subdataWithRange:
		    OFRangeMake(1, count - 1)];

		if (unusedBits != 0)
			length -= unusedBits;
	} @catch (id e) {
		[self release];
		@throw e;
	}







|







87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
			@throw [OFInvalidFormatException exception];

		if (SIZE_MAX / 8 < count - 1)
			@throw [OFOutOfRangeException exception];

		length = (count - 1) * 8;
		bitString = [DEREncodedContents subdataWithRange:
		    OFMakeRange(1, count - 1)];

		if (unusedBits != 0)
			length -= unusedBits;
	} @catch (id e) {
		[self release];
		@throw e;
	}