Overview
Comment: | Check the item size of the passed data array in of_base64_decode(). |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
be4963077715532d34c354ee52726d91 |
User & Date: | js on 2011-06-26 23:40:06 |
Other Links: | manifest | tags |
Context
2011-06-26
| ||
23:54 | Add -[{decimal,hexadecimal,float,double}Value] to OFXMLAttribute. check-in: 0952a96827 user: js tags: trunk | |
23:40 | Check the item size of the passed data array in of_base64_decode(). check-in: be49630777 user: js tags: trunk | |
13:12 | Add OFDoubleVector and OFDoubleMatrix. check-in: 3c47f319dd user: js tags: trunk | |
Changes
Modified src/base64.m from [763d209bf9] to [31c95b71a3].
︙ | ︙ | |||
100 101 102 103 104 105 106 107 108 109 110 111 112 113 | 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; for (i = 0; i < len; i += 4) { uint32_t sb = 0; uint8_t count = 3; char db[3]; char tmp; | > > > | 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; |
︙ | ︙ |