Differences From Artifact [c4ee6e4bc8]:
- File src/OFMD5Hash.m — part of check-in [d43eb177bc] at 2011-09-19 12:34:21 on branch trunk — BOOL naming conventions. (user: js, size: 6827) [annotate] [blame] [check-ins using]
To Artifact [65056dd7ed]:
- File
src/OFMD5Hash.m
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 6836) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
151 152 153 154 155 156 157 | { uint32_t t; if (length == 0) return; if (calculated) | | > | | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | { uint32_t t; if (length == 0) return; if (calculated) @throw [OFHashAlreadyCalculatedException exceptionWithClass: isa hash: self]; /* Update bitcount */ t = bits[0]; if ((bits[0] = t + ((uint32_t)length << 3)) < t) /* Carry from low to high */ bits[1]++; bits[1] += (uint32_t)length >> 29; |
︙ | ︙ |