Differences From Artifact [763d209bf9]:
- File src/base64.m — part of check-in [6f4bf74c7d] at 2011-04-23 13:23:51 on branch trunk — More style improvements. (user: js, size: 4045) [annotate] [blame] [check-ins using]
To Artifact [31c95b71a3]:
- File src/base64.m — part of check-in [be49630777] at 2011-06-26 23:40:06 on branch trunk — Check the item size of the passed data array in of_base64_decode(). (user: js, size: 4086) [annotate] [blame] [check-ins using]
︙ | |||
100 101 102 103 104 105 106 107 108 109 110 111 112 113 | 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | + + + | of_base64_decode(OFDataArray *data, const char *str, size_t len) { const uint8_t *buf = (const uint8_t*)str; size_t i; if ((len & 3) != 0) return NO; if ([data itemSize] != 1) return NO; for (i = 0; i < len; i += 4) { uint32_t sb = 0; uint8_t count = 3; char db[3]; char tmp; |
︙ |