Commit graph

12991 commits

Author SHA1 Message Date
rfm
0fb9739f21 Fix leaks and a possible buffer overrun 2024-11-17 12:55:55 +00:00
Gregory John Casamento
67a42b38ce Merge branch 'master' of github.com:gnustep/libs-base 2024-11-17 06:33:35 -05:00
Gregory John Casamento
704b467075 Add final documentation changes 2024-11-17 06:33:14 -05:00
rfm
dc4fad2c47 Fix for dealloc without init 2024-11-17 11:27:41 +00:00
rfm
6c276d6ab4 Technically <br /> is correct xml even though <br/> is generally accepted. 2024-11-17 10:14:08 +00:00
rfm
21c8b6b8a2 Fixup <br> to <br/> 2024-11-17 09:57:25 +00:00
rfm
cb0f6a64de
Merge pull request #465 from gnustep/documentation_changes
Add documentation
2024-11-17 09:56:01 +00:00
rfm
5b46efa8cd More leak fixes 2024-11-16 21:11:56 +00:00
rfm
d68e8be8ee Fix leaks 2024-11-16 15:45:38 +00:00
rfm
c7f0c27dd7 More leaks fixed 2024-11-16 14:07:33 +00:00
rfm
aedd13dc94 More leaks fixed 2024-11-16 13:34:56 +00:00
Gregory John Casamento
283cb91ea8 Cleanup whitespace 2024-11-16 07:06:27 -05:00
rfm
87c50830e2 Fix some more leaks 2024-11-16 11:51:53 +00:00
rfm
9573539795 Fix buffer overrun 2024-11-16 11:51:53 +00:00
rfm
1e5c30dc50 Avoid possible leak caused by exception during property list parsing 2024-11-16 11:51:53 +00:00
Gregory John Casamento
9f8edc580a Add NSUnit documentation 2024-11-16 06:50:58 -05:00
rfm
75ae2da498 Fix bug when emptying an empty array 2024-11-16 11:41:12 +00:00
rfm
088b76bed1 Fix leaks 2024-11-15 21:21:41 +00:00
rfm
77c66e3d95 Fix leaks 2024-11-15 20:48:09 +00:00
rfm
8209fa428f Lazy initialisation of nonBase charset info to avoid recursion during startup 2024-11-15 18:47:45 +00:00
rfm
d7c9bdbce7 Fix nil to NULL 2024-11-15 18:35:41 +00:00
rfm
093ab72a47 Fix leaks 2024-11-15 16:00:47 +00:00
rfm
70b687d3fd Fix leak. 2024-11-15 16:00:01 +00:00
rfm
91be2c2c83 Fix leaks 2024-11-15 15:44:39 +00:00
rfm
bdad4987ae Fix leaked FFI structure argument/returntype information 2024-11-15 15:43:47 +00:00
rfm
2f9f0d6761 Fix leaks 2024-11-15 13:00:56 +00:00
rfm
072c17f315 Add some consistecy checks 2024-11-15 12:28:14 +00:00
rfm
a1e17402cf fix leaks 2024-11-15 12:27:48 +00:00
rfm
1536c24331 Fix buffer overrun 2024-11-15 12:20:05 +00:00
rfm
36822d6eef Fix leaks 2024-11-15 11:00:57 +00:00
rfm
6386ac5474 Fix leaks 2024-11-15 10:49:19 +00:00
rfm
2f3b258bd1 Fix leaks 2024-11-15 10:44:29 +00:00
rfm
050f44806c fix leaks 2024-11-14 20:26:37 +00:00
rfm
1c7e81dee1 Free 'leaked' memory at exit. 2024-11-14 18:57:05 +00:00
rfm
bb57918f70 Protect against dealloc before init 2024-11-14 17:57:55 +00:00
rfm
43484b2c34 Fix deallocation of placeholder strings at exit. 2024-11-14 16:18:26 +00:00
rfm
4185b687f2 fix little leak 2024-11-14 15:30:01 +00:00
rfm
8b0543571b Don't use deprecated +leak: method. 2024-11-14 14:56:28 +00:00
rfm
25505b2e67 Some more leak improvements 2024-11-14 14:45:05 +00:00
rfm
dd3367de3b atexit improvements 2024-11-14 12:52:43 +00:00
rfm
e64b7dc6b3 iuse bundle identifier for user defaults 2024-11-13 23:11:10 +00:00
rfm
b2e198cb0d Fix notification removal bug from last update 2024-11-12 15:08:06 +00:00
rfm
28ba7788ce Fix the case where we replace a value already in the map 2024-11-12 14:27:06 +00:00
rfm
b78b2e2030 hash/map table and pointer functions fixups 2024-11-12 12:03:24 +00:00
rfm
c981920679 Revert "Retain count fixes"
This reverts commit 544dcce482.
2024-11-10 20:13:39 +00:00
Hugo Melder
6681a3da47
Initial port of WinObjC's KVO implementation to GNUstep (#420)
* GSAtomic: Add prefix to macro definitions

* NSKVOSupport: Import

* NSKVOSupport: Add test cases

* NSKVOSwizzling: Ugly C Rewrite

* NSKeyValueObserving: Use old implementation as fallback

* NSKeyValueObserving: Rename TypeEncodingCases header

* NSKVOSupport: Fix new objects not being added to NSKeyValueChangeNew set on set mutation

* NSKeyValueMutableSet: Fix will and didChange notifications for set operations

* NSKeyValueMutableSet: Document Accessor Search Patterns

* NSKVOSupport: Add toMany test

* NSKeyValueCoding: Change notifications when changing value via setValue:forKey:

* NSKVOSupport: Add more tests

* NSKVOSupport: Do not wrap block in try/finally to avoid crash in windows

* NSKVOSwizzling: use _alloca on Windows

* NSKVOSupport: Do not autorelease newWithObservee:

* NSKVOSupport: Do not leak Observee and TestFacade objects

* Improve runtime detection in makefile

* Add file extension of source file in GNUMakefile

* NSKVOSupport: Remove @status comments

* NSKVOSupport: Implement private notify method

* NSUserDefaults: KVO Support and fix macOS incompatibilities

* NSKeyValueObserving: Set old to null if nil

* NSKeyValueObserving: Remove cached new value

* NSMethodSignature: Add signature cache

* NSKVOSupport: Remove ObjC2 features and mark tests failing on GCC as hopeful

* Call class method instead of private _keyPathsForValuesAffectingValueForKey

* Move _keyPathsForValuesAffectingValueForKey body into class method and statically construct empty NSSet

* NSUserDefaults: Change notification should contain old value from other domains aswell

* NSUserDefaults: Fetch new value from all domains

* NSKVOInternal: Fixup filename in header

* NSUserDefaults: Go through search list instead of only one domain in KVO change

* Making indentation a bit less worse

* Add NSUserDefaults KVO tests

* NSKVOSupport: NSUserDefaults test small fixes

* Add autoreleasepool

* NSUserDefaults: Only emit change notifications if value changed

* Avoid compiler warnings and tidy some of the whitespace/formatting

---------

Co-authored-by: Frederik Seiffert <frederik@algoriddim.com>
Co-authored-by: rfm <richardfrithmacdonald@gmail.com>
Co-authored-by: rfm <rfm@gnu.org>
2024-11-10 17:05:23 +01:00
rfm
544dcce482 Retain count fixes 2024-11-10 14:14:42 +00:00
rfm
44222342b0 Fix for issue 461 2024-11-09 11:09:22 +00:00
rfm
b3f4a162de fix typo 2024-11-09 07:45:07 +00:00
Gregory John Casamento
37b5491826 Add documentation for -[NSArray objectsAtIndexes:]. Quick fix. 2024-11-08 21:02:30 -05:00