rfm
9e86902ba1
Alter initialisation order to make plist generation more robust.
2024-12-30 12:57:59 +00:00
rfm
1e5c30dc50
Avoid possible leak caused by exception during property list parsing
2024-11-16 11:51:53 +00:00
rfm
6667842dd5
Update FSF address as requested by Gregory
2024-11-07 13:37:59 +00:00
rfm
7c4a7469a9
Fix potential leaks
2024-06-19 11:28:34 +01:00
Frederik Seiffert
61709e6101
Support building on Windows with Clang MSVC target
2021-02-03 15:02:27 +01:00
Richard Frith-Macdonald
168dd211e3
remove unused header import
2020-12-30 11:55:44 +00:00
Mingye Wang
7df4ec1482
fixup! buf type (strtod commit)
2020-03-04 14:26:43 +08:00
Mingye Wang
69b202274a
NSPropertyList: use strtod to handle inf and nan
...
Apple's implementation seems to understand these things. We should too.
2020-02-20 12:07:04 +08:00
Mingye Wang
a76677623a
plutil: use GS text for pretty print
2020-02-20 11:28:09 +08:00
Gregory John Casamento
753c907938
Fix address for FSF and License name in all headers in base
2019-12-09 18:36:00 -05:00
Richard Frith-Macdonald
efb4ec5f22
Tweak return value to definitely be YES or NO rather than true/false
2018-03-30 10:45:57 +01:00
Richard Frith-Macdonald
93a961304a
casts to avoid spurious warnings
2018-02-07 10:53:13 +00:00
Richard Frith-Macdonald
df6d65accc
check step in function before use
2018-02-06 12:51:25 +00:00
Richard Frith-Macdonald
a29213a3a2
remove unused code
2018-02-05 13:03:58 +00:00
Richard Frith-MacDonald
d5e55c0470
minor property list generation improvement
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39595 72102866-910b-0410-8b05-ffd578937521
2016-03-23 10:47:24 +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
09f15d2b8d
Use defaults cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39373 72102866-910b-0410-8b05-ffd578937521
2016-02-15 10:10:39 +00:00
Fred Kiefer
7cef72282c
* Source/NSPropertyList.m (GSBinaryPLGenerator-storeCount:): Use
...
0x12 instead of 0x13 for integer count.
* Source/NSPropertyList.m (GSBinaryPLParser-readCountAt:):
* Handle
0x12 correctly. Use same code for 0x13 to read old incorrect
written data.
Based on change by Josh Freeman <pikopixel@twilightedge.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39025 72102866-910b-0410-8b05-ffd578937521
2015-10-03 19:50:03 +00:00
Niels Grewe
bf6898262b
Fix a bug writing base64 data to a plist
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38973 72102866-910b-0410-8b05-ffd578937521
2015-09-08 07:13:54 +00:00
Richard Frith-MacDonald
3bbe9ff957
more tweaks ... move base64 encoding to shared private function
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38954 72102866-910b-0410-8b05-ffd578937521
2015-08-30 09:23:27 +00:00
Richard Frith-MacDonald
9aa5d4cd04
Use base64 in gnustep property lists
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38953 72102866-910b-0410-8b05-ffd578937521
2015-08-30 07:28:26 +00:00
Richard Frith-MacDonald
3f2fa9ddfe
gnustep ptext property list format improvements.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38952 72102866-910b-0410-8b05-ffd578937521
2015-08-30 06:59:34 +00:00
Niels Grewe
36c62c850c
Safety fix for parsing binary property lists
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38859 72102866-910b-0410-8b05-ffd578937521
2015-08-07 15:06:38 +00:00
Richard Frith-MacDonald
796c806c8e
Use up to date DTD
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38789 72102866-910b-0410-8b05-ffd578937521
2015-07-14 17:04:45 +00:00
Richard Frith-MacDonald
cf6cacf452
comment out debug logging line
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37212 72102866-910b-0410-8b05-ffd578937521
2013-10-09 17:24:12 +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
a18df9e51c
revert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36899 72102866-910b-0410-8b05-ffd578937521
2013-07-16 19:55:14 +00:00
Richard Frith-MacDonald
667ca3b715
fix mutability errors and tiny leak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36895 72102866-910b-0410-8b05-ffd578937521
2013-07-16 10:03:40 +00:00
Richard Frith-MacDonald
f7182588d0
more static analyser fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36843 72102866-910b-0410-8b05-ffd578937521
2013-07-06 07:14:45 +00:00
Richard Frith-MacDonald
360e1f6ec6
some small fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36616 72102866-910b-0410-8b05-ffd578937521
2013-05-13 07:09:41 +00:00
David Chisnall
8c44178520
Change the type of a buffer to reflect its use and silence an alignment
...
warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36602 72102866-910b-0410-8b05-ffd578937521
2013-05-08 10:44:01 +00:00
Richard Frith-MacDonald
82c51f73a4
Fix for bug #38017
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36007 72102866-910b-0410-8b05-ffd578937521
2013-01-21 10:15:17 +00:00
Richard Frith-MacDonald
66364a9465
avoid a few compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35867 72102866-910b-0410-8b05-ffd578937521
2012-12-08 22:16:20 +00:00
Richard Frith-MacDonald
f0fa7fbe28
TLS/SSL session credentials caching
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35860 72102866-910b-0410-8b05-ffd578937521
2012-12-06 09:40:11 +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
Eric Wasylishen
8b7f4c85c6
* Source/NSPropertyList.m (-[GSBinaryPLGenerator storeString:):
...
Write unicode strings in big-endian instead of little-endian.
The resulting plists now load properly on OS X. Thanks to
rdemet for bug report.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35697 72102866-910b-0410-8b05-ffd578937521
2012-10-16 02:55:13 +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
Wolfgang Lux
4e8258b232
Add missing variable declaration on big-endian systems.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35543 72102866-910b-0410-8b05-ffd578937521
2012-09-09 10:04:22 +00:00
Richard Frith-MacDonald
e798592eb8
forgot about turning off whitespace in plist element
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35534 72102866-910b-0410-8b05-ffd578937521
2012-09-06 15:06:12 +00:00
Richard Frith-MacDonald
e46b8d3567
tweak xml parsing to not ignore white space
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35533 72102866-910b-0410-8b05-ffd578937521
2012-09-06 12:58:25 +00:00
Richard Frith-MacDonald
0be505308d
simplification, including use of strtoull() everywhere
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35503 72102866-910b-0410-8b05-ffd578937521
2012-09-03 13:36:45 +00:00
Richard Frith-MacDonald
94add60875
property list deserialisation tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35395 72102866-910b-0410-8b05-ffd578937521
2012-08-10 19:09:44 +00:00
Richard Frith-MacDonald
897390797f
preparation for osx compatibility fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35390 72102866-910b-0410-8b05-ffd578937521
2012-08-10 08:36:09 +00:00
Richard Frith-MacDonald
cbbdf7a3df
fix bogus NSError generation when deserialising some property lists
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35382 72102866-910b-0410-8b05-ffd578937521
2012-08-09 12:58:01 +00:00
Richard Frith-MacDonald
7bef14a326
check for nil argument and raise as per apple documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35193 72102866-910b-0410-8b05-ffd578937521
2012-06-12 05:39:31 +00:00
Richard Frith-MacDonald
3569303331
documentation cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34015 72102866-910b-0410-8b05-ffd578937521
2011-10-17 10:59:02 +00:00
Fred Kiefer
41298e5ec4
* Source/NSPropertyList.m (GSBinaryPLParser -objectAtIndex:):
...
Use long long for all integer types. Before we used signed types
which resulted wrong values for negative integers.
* Source/NSKeyedUnarchiver.m (-_decodeObject:): Handle the
string "$null" as nil all the times.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33934 72102866-910b-0410-8b05-ffd578937521
2011-10-03 19:48:30 +00:00
David Chisnall
d2ea054c26
Lots of little fixes to make -base compile with -Werror (now builds without warnings).
...
Richard: I'm unsure about three of these, which were fixes in memset() calls in:
- NSConcreteMapTable.m
- NSConcreteHashTable.m
- Additions/NSData+GNUstepBase.m
Please can you check them? I think they are intended to zero the entire object
(rather than the first word), but the lack of comments makes me unsure.
Most changes were just tweaks to variable types. I've also removed some dead code from NSInvocation. This was small group of things that were marked for internal use only, but not actually referenced in the code anywhere.
Other improvements:
- NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) prototypes.
- getObjects:andKeys: implemented for NSDictionary (10.5 method)
- NSPointerArray and NSHashTable now properly support weak objects.
- Tests for weak objects in collections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33621 72102866-910b-0410-8b05-ffd578937521
2011-07-24 13:09:22 +00:00
Richard Frith-MacDonald
9810a1ec9c
a few more static analyser tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32517 72102866-910b-0410-8b05-ffd578937521
2011-03-09 12:40:50 +00:00
Richard Frith-MacDonald
d18e29dde8
avoid compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32417 72102866-910b-0410-8b05-ffd578937521
2011-02-28 19:49:57 +00:00