Overview
Comment: | Disallow newlines in JSON strings. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
670a739c029a9276c1e86944090de15a |
User & Date: | js on 2012-06-05 16:05:32 |
Other Links: | manifest | tags |
Context
2012-06-06
| ||
12:15 | swapObjectAtIndex... -> exchangeObjectAtIndex... check-in: 13e6e99067 user: js tags: trunk | |
2012-06-05
| ||
16:05 | Disallow newlines in JSON strings. check-in: 670a739c02 user: js tags: trunk | |
15:03 | JSON5: Allow identifiers as dictionary keys. check-in: c9a3ac1a03 user: js tags: trunk | |
Changes
Modified src/OFString+JSONValue.m from [e03da095af] to [06182df9e0].
︙ | |||
254 255 256 257 258 259 260 261 262 263 264 265 266 267 | 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | + + + + | } @finally { free(buffer); } (*pointer)++; return ret; /* Newlines in strings are disallowed */ } else if (**pointer == '\n' || **pointer == '\r') { free(buffer); return nil; } else { buffer[i++] = **pointer; (*pointer)++; } } free(buffer); |
︙ |