145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
OF_SERIALIZATION_NS].firstObject;
countAttribute =
[objectElement attributeForName: @"count"];
if (object == nil || countAttribute == nil)
@throw [OFInvalidFormatException exception];
signedCount =
countAttribute.stringValue.decimalValue;
if (signedCount < 0)
@throw [OFOutOfRangeException exception];
count = signedCount;
if (count > SIZE_MAX || count > UINTPTR_MAX)
@throw [OFOutOfRangeException exception];
|
|
<
|
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
OF_SERIALIZATION_NS].firstObject;
countAttribute =
[objectElement attributeForName: @"count"];
if (object == nil || countAttribute == nil)
@throw [OFInvalidFormatException exception];
signedCount = countAttribute.decimalValue;
if (signedCount < 0)
@throw [OFOutOfRangeException exception];
count = signedCount;
if (count > SIZE_MAX || count > UINTPTR_MAX)
@throw [OFOutOfRangeException exception];
|