rfm
e8813346e5
more leak fixes
2024-03-04 10:49:58 +00:00
rfm
619f902e9b
ileak fix
2024-03-04 10:21:35 +00:00
rfm
b7f66a9dd3
fix for issue #365
2024-01-29 14:27:32 +00:00
Riccardo Mottola
08858caf29
cleanup biolerplate comments, enable autogsdoc comments, cleanup some old RCS/CVS tags, fix emails
2023-12-23 02:44:50 +01:00
Richard Frith-Macdonald
0950bed43b
Tweak whitespace for code consistency
2021-11-29 14:01:41 +00:00
Richard Frith-Macdonald
149acc40ae
fix minor potential leaks
2021-09-16 10:20:41 +01:00
niwatako
dccd799256
Fix exponent validation
2020-05-11 21:46:25 +09:00
niwatako
6869df9a50
Fix loss of buffer in NSJSONSerialization.
...
The first time bufferSize is extended, number loses the previously parsed characters.
After malloc the number, copy the numberBuffer to the number.
2020-05-01 23:51:55 +09:00
Richard Frith-Macdonald
dd3e71e050
escape charaacters with codepoint greater than 0x7f
2019-02-27 16:54:45 +00:00
Richard Frith-Macdonald
06ff76d882
fix use after free
2018-01-30 07:57:36 +00:00
Graham Lee
05184a7e1a
fix overflow of integer types when writing large unsigned long longs to JSON
2017-11-25 21:23:46 +00:00
Richard Frith-MacDonald
08f141ad80
patch by <abbas.raza.1707@gmail.com>
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40066 72102866-910b-0410-8b05-ffd578937521
2016-08-30 13:20:34 +00:00
Richard Frith-MacDonald
a0c97c1ddd
deprecate confusing extension in favour of simpler ARC-complient method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39520 72102866-910b-0410-8b05-ffd578937521
2016-03-10 16:50:41 +00:00
Richard Frith-MacDonald
250e0a4d7d
json fixes by Larry Campbell
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37994 72102866-910b-0410-8b05-ffd578937521
2014-07-14 06:38:16 +00:00
Quentin Mathe
150289de30
Fixed double number JSON serialization to encode 17 significant digits (this
...
matches the max number of significant digits in the double-precision floating
point format). This prevents a loss of precision, in case the number has more
than 3 digits after the decimal point.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37556 72102866-910b-0410-8b05-ffd578937521
2014-01-07 19:20:00 +00:00
Richard Frith-MacDonald
77415c00b5
cope with output of large integers
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37117 72102866-910b-0410-8b05-ffd578937521
2013-09-19 14:17:56 +00:00
Richard Frith-MacDonald
ed09c55959
leak detection improvements
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37003 72102866-910b-0410-8b05-ffd578937521
2013-08-22 15:44:54 +00:00
Richard Frith-MacDonald
b2d5fd280c
Changes for 64bit clean printf format strings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
2013-07-03 06:46:41 +00:00
Richard Frith-MacDonald
97cecc058e
tweaks to keep static analyzer happy
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36527 72102866-910b-0410-8b05-ffd578937521
2013-04-14 16:25:27 +00:00
Richard Frith-MacDonald
e02ff90f23
make code more robust when there's no autorelease pool.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35706 72102866-910b-0410-8b05-ffd578937521
2012-10-17 13:47:11 +00:00
Richard Frith-MacDonald
30934c87eb
fix json quoting by copying from webservices library
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35559 72102866-910b-0410-8b05-ffd578937521
2012-09-10 13:18:29 +00:00
Richard Frith-MacDonald
d2972dd399
improve serialisation of booleans
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35557 72102866-910b-0410-8b05-ffd578937521
2012-09-10 10:27:59 +00:00
Richard Frith-MacDonald
b2900f17b1
minor fix for output format
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34853 72102866-910b-0410-8b05-ffd578937521
2012-03-01 09:30:13 +00:00
Richard Frith-MacDonald
a2dbde8cec
small parsing fixes suggested by Lubomir Rintel <lubo.rintel@gooddata.com>
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34750 72102866-910b-0410-8b05-ffd578937521
2012-02-14 18:28:17 +00:00
Richard Frith-MacDonald
b6497999a6
JSON fixups thanks to Lubomir Rintel <lubo.rintel@gooddata.com>
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34681 72102866-910b-0410-8b05-ffd578937521
2012-01-31 16:32:40 +00:00
Richard Frith-MacDonald
e138bc1db8
fix buffer overrun
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34667 72102866-910b-0410-8b05-ffd578937521
2012-01-30 15:26:09 +00:00
Richard Frith-MacDonald
40f8c557c9
whitespace tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34411 72102866-910b-0410-8b05-ffd578937521
2012-01-04 12:38:18 +00:00
Richard Frith-MacDonald
f0a4e940d1
fix errors in BOM handling
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34187 72102866-910b-0410-8b05-ffd578937521
2011-11-18 05:19:50 +00:00
Fred Kiefer
ae18c2fee0
* Source/NSJSONSerialization.m: Get this file to compile with
...
standard gcc settings fro GNUstep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33633 72102866-910b-0410-8b05-ffd578937521
2011-07-25 20:30:39 +00:00
David Chisnall
c1cca9a336
Added NSJSONSerialization (10.7) implementation. The code path reading from an NSInputStream is not well tested - please try and break it!
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33631 72102866-910b-0410-8b05-ffd578937521
2011-07-25 15:50:51 +00:00