Richard Frith-Macdonald
a211bb4aee
improve warnings about loss of infomration converting scalar type sizes
2018-02-08 06:05:25 +00:00
Richard Frith-Macdonald
d95203c968
Tweka for overflow of negative number calculation
2018-02-07 15:13:48 +00:00
Richard Frith-Macdonald
c515993d45
avoid checker warning
2018-02-07 13:31:26 +00:00
Richard Frith-Macdonald
6ad1b0e7b2
add security checks on port file
2018-02-07 13:26:38 +00:00
Richard Frith-Macdonald
8420eeed03
keep checker happy
2018-02-07 13:02:08 +00:00
Richard Frith-Macdonald
fec1eafa32
cast to void to avoid warning
2018-02-07 11:40:34 +00:00
Richard Frith-Macdonald
9968a13711
temporarily ifdef out some code thast's not yet used
2018-02-07 11:36:59 +00:00
Richard Frith-Macdonald
93a961304a
casts to avoid spurious warnings
2018-02-07 10:53:13 +00:00
Richard Frith-Macdonald
73f3fb78ab
raise on character conversion failure
2018-02-07 10:49:02 +00:00
Richard Frith-Macdonald
0d61b42215
remove dead code
2018-02-07 10:45:08 +00:00
Richard Frith-Macdonald
ad87ff5462
raise exception on character conversion failure
2018-02-07 10:38:57 +00:00
Richard Frith-Macdonald
14c2d9402d
Remove dead code and improve testing
2018-02-07 09:48:56 +00:00
Richard Frith-Macdonald
3edc201239
Patch by Yavor Doganov to send message id in port messages
2018-02-07 07:02:40 +00:00
Richard Frith-Macdonald
033b921903
improve error checking
2018-02-06 18:05:28 +00:00
Richard Frith-Macdonald
c0d6599def
use double type for average
2018-02-06 16:59:49 +00:00
Richard Frith-Macdonald
fcd464f118
Help checker know that we don't need return value
2018-02-06 16:49:07 +00:00
Richard Frith-Macdonald
df6d65accc
check step in function before use
2018-02-06 12:51:25 +00:00
Richard Frith-Macdonald
f7c71c695e
fix possible nul pointer deref
2018-02-06 12:43:55 +00:00
Richard Frith-Macdonald
3d98433cc7
log failure to turn on keepalive
2018-02-06 12:37:03 +00:00
Richard Frith-Macdonald
0f7a6d58d3
log if we fail to turn on keepalive
2018-02-06 12:34:04 +00:00
Richard Frith-Macdonald
ccd2fb1ac0
Tell compiler we don't care about rreturn value
2018-02-06 12:26:32 +00:00
Richard Frith-Macdonald
1937b36b86
Update assertion macros to support multiple arguments
2018-02-06 09:35:34 +00:00
Richard Frith-Macdonald
8450b94bc8
logic fig for overflow becoming underflow when using negated values
2018-02-05 13:26:41 +00:00
Richard Frith-Macdonald
0d6d01bc00
use cast when masking 64bit value
2018-02-05 13:14:31 +00:00
Richard Frith-Macdonald
96dcac7a74
remove dead code
2018-02-05 13:07:59 +00:00
Richard Frith-Macdonald
a29213a3a2
remove unused code
2018-02-05 13:03:58 +00:00
Richard Frith-Macdonald
7e7d71d63e
remove redundant code
2018-02-05 08:14:41 +00:00
Richard Frith-Macdonald
493eb2cf2f
remove unused code
2018-02-05 08:11:46 +00:00
Richard Frith-Macdonald
546deb4604
check for failure of dup/dup2 even though it will never happen
2018-02-04 11:36:06 +00:00
Richard Frith-Macdonald
54bf6598ed
make sure the hour we read from the time zone file is constrained to 0-23
2018-02-04 11:21:47 +00:00
Richard Frith-Macdonald
b135bc8ae0
suppress warning using cast
2018-02-04 11:17:33 +00:00
Richard Frith-Macdonald
ab670fd27a
improive handling of failed character conversion
2018-02-04 11:10:07 +00:00
Richard Frith-Macdonald
113867e9e6
fix for collation alone being set
2018-02-04 10:51:01 +00:00
Richard Frith-Macdonald
5277bf7043
Keep checker happy by avoiding possible null pointer deref
2018-02-04 10:35:15 +00:00
Richard Frith-Macdonald
890eaa9d32
don't copy address info ifg getpeername fails
2018-02-04 10:10:57 +00:00
Richard Frith-Macdonald
4f50f358c3
more fixups for unicode and to avoid warnings
2018-02-04 08:38:20 +00:00
Richard Frith-Macdonald
78087d0aa4
tweak to keep checker happy
2018-02-04 08:28:51 +00:00
Richard Frith-Macdonald
f1b1c1c754
fix bad type in assignment
2018-02-03 16:03:32 +00:00
Richard Frith-Macdonald
41fd87ce35
potential resource leak fix
2018-02-03 15:57:04 +00:00
Richard Frith-Macdonald
8a66507f29
changer memcpy to memmove
2018-02-03 10:11:30 +00:00
fredkiefer
e69450400a
* Source/GSFormat.m: Call va_end with the correct parameter.
...
* Source/NSObject+NSComparisonMethods.m: Add missing return.
* Source/GSString.m (-replaceCharactersInRange:withString:,
-initWithBytesNoCopy:...freeWhenDone:): Remove dead code.
* Source/NSDistantObject.m (-initWithCoder:): Remove dead code.
* Source/NSPredicate.m (_eval_avg:): Don't devide by zero.
Fix issues found by Coverity.
2018-02-01 22:31:15 +01:00
Richard Frith-Macdonald
dcd3b8c5a9
fix possible error with negative time zone offset.
2018-01-31 14:31:37 +00:00
Richard Frith-Macdonald
c30166c612
add missing va_end
2018-01-31 14:28:44 +00:00
Richard Frith-Macdonald
9d21ee5671
check for null pointer
2018-01-31 14:24:46 +00:00
Richard Frith-Macdonald
9a8c3486ff
fix bad copy/paste
2018-01-31 14:17:50 +00:00
Richard Frith-Macdonald
5a2506dca9
Remove unused line
2018-01-31 14:15:32 +00:00
Richard Frith-Macdonald
f718aa30c9
Make it clear that we are doing a standard binary search and allow for changes
...
to character composition/decomposition in future.
2018-01-31 07:42:59 +00:00
Richard Frith-Macdonald
c31c6a87b8
fix uninitialised variable
2018-01-30 15:01:01 +00:00
Richard Frith-Macdonald
92f961dbb6
remove redundant close
2018-01-30 14:40:12 +00:00
Richard Frith-Macdonald
ee8bb1fbeb
Fix possible deref of null pointer
2018-01-30 14:34:27 +00:00
Richard Frith-Macdonald
56aaa72d3d
be more careful about closing iconv handle on errors
2018-01-30 14:03:01 +00:00
Richard Frith-Macdonald
06ff76d882
fix use after free
2018-01-30 07:57:36 +00:00
Richard Frith-Macdonald
22d7d2428a
warn about corrupt archive
2018-01-30 07:54:23 +00:00
Richard Frith-Macdonald
65ac0eca15
fix potential unterminated buffer and leak on failure
2018-01-30 07:43:58 +00:00
Richard Frith-Macdonald
b76089f0cd
fix potential unterminated string
2018-01-30 07:39:25 +00:00
Richard Frith-Macdonald
86af4da784
fix possible resource leak on conversion failure
2018-01-30 07:38:08 +00:00
Richard Frith-Macdonald
3884a82c7a
comment on why descriptor is NOT leaked
2018-01-30 07:36:53 +00:00
Richard Frith-Macdonald
ba7c5086d1
gix handle leak on write failure
2018-01-30 07:26:05 +00:00
Richard Frith-Macdonald
6b1f8f7962
fix very minor descriptor leak (one descriptor in subtask)
2018-01-30 07:21:39 +00:00
Richard Frith-Macdonald
3281c0f6b6
fix potentially unterminated buffer
2018-01-30 07:12:32 +00:00
Richard Frith-Macdonald
7045f84acc
OSX compatibility fixes for zero width space character and initialising an NSURL
...
with bad strings.
2018-01-26 12:53:47 +00:00
Richard Frith-Macdonald
d8e7607582
Tweaks to let comp[iler know that methods to raise an exception don't return.
2018-01-25 10:05:52 +00:00
Richard Frith-Macdonald
cc97172bdd
check for nul pointer when destroying zone
2018-01-23 16:34:26 +00:00
Richard Frith-Macdonald
746f2a2a1a
ndentation fixups
2018-01-23 16:17:57 +00:00
Richard Frith-Macdonald
07ba3ec932
add comments
2018-01-23 14:07:46 +00:00
Richard Frith-Macdonald
c7ba537c75
fix issues picked up by automated checker
2018-01-23 11:32:36 +00:00
Richard Frith-Macdonald
5f7e53c175
Re-enable optimisation on NSConnection/NSInvocation
2018-01-19 08:44:50 +00:00
Richard Frith-Macdonald
c7fc9c4b65
notify immediately if in correct thread
2018-01-15 11:57:23 +00:00
Richard Frith-Macdonald
28048a5947
Don't try to notify about task termination on the thread that started the task
...
if it has already finished executing.
2018-01-15 11:42:04 +00:00
Richard Frith-Macdonald
7fd95c877f
Improve message in exception when we perform on a finished thread
2018-01-15 10:08:13 +00:00
Richard Frith-Macdonald
925f1dd5e1
Add Yavor Doganov's patches for tests and config. Add fixes for GSXML
...
validation of xml documents
2018-01-14 12:30:13 +00:00
Richard Frith-Macdonald
31257785d6
External entity resolution turned off by default for security
2018-01-11 16:39:21 +00:00
Richard Frith-Macdonald
93389bb357
Minore xml parsing fixes
2018-01-11 13:50:39 +00:00
Richard Frith-Macdonald
4efa322ca2
Fix bug in object allocation when ARC is available
2018-01-04 09:08:36 +00:00
Richard Frith-Macdonald
dae9b8973e
OSX compatibility tweaks based on running testcases on 10.13.2 (high sierra).
2018-01-03 15:42:09 +00:00
Richard Frith-Macdonald
6150b3fd62
Fix for bug #51592
2018-01-02 12:48:18 +00:00
Richard Frith-Macdonald
6ec34b4df4
Merge branch 'master' of ssh://github.com/gnustep/libs-base
...
Conflicts:
ChangeLog
2017-12-21 13:56:34 +00:00
Richard Frith-Macdonald
4ce7a25541
Changes to avoid possible hang in connection reply mode due to race condition.
2017-12-21 13:51:01 +00:00
Riccardo
ae335197f4
cleanup previous commit
2017-12-21 13:11:08 +01:00
Riccardo
d28a000877
Compatibility for OS/compiler not supporting weak symbols
2017-12-21 08:34:46 +01:00
Richard Frith-Macdonald
f319725536
copying the local time zone just, returns it
2017-12-19 11:42:53 +00:00
Graham Lee
186d840ce6
Merge branch 'master' into json-signed-integers
2017-12-18 12:56:28 +00:00
David Chisnall
25e67bd107
Refactor weak symbol usage.
...
The Linux run-time linker doesn't allow weak references in one library
to be overridden by ones in another. To work around this, we now
declare the runtime functions as weak and perform dynamic checks on
whether the symbols have been resolved and call the fallbacks as local
static functions if they are not present.
2017-12-17 10:57:25 +00:00
David Chisnall
e35eb61dbc
Make object allocation and deallocation use the runtime.
...
All objects are now created and destroyed by the runtime, so we have
clean layering between -base and libobjc.
2017-12-13 18:22:08 +00:00
David Chisnall
c3921ee1f7
Refactor refcount usage.
...
This makes it easier for the runtime to change how reference counts are
stored by removing any refcount manipulation from -base when the runtime
provides accessors. This should have no functionality change with
existing runtimes, but will let newer runtimes drop in alternative
representations easily.
2017-12-13 17:19:43 +00:00
David Chisnall
98205ac266
Fix a bug in NSMapTable.
...
In the simple constructors, we were using the pointer functions that use
pointer equality and a hash derrived from the pointer, rather than -isEqual:
and -hash. This led to some subtle and confusingly broken behavior.
2017-12-11 16:30:18 +00:00
fredkiefer
97f9a02308
Add new symbolic link method to NSFileManager.
2017-12-03 21:55:33 +01: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
Zenny Chen
fd5744356f
Update blocks_runtime.m
2017-11-19 13:14:17 +08:00
Zenny Chen
d0d7238172
Update GSBlocks.m
...
Compatible to the new-updated GSBlocks.h
2017-11-19 01:19:44 +08:00
Zenny Chen
4c0dc51305
Update blocks_runtime.m
...
Get compatible with new-updated Blocks API
2017-11-19 01:01:39 +08:00
Richard Frith-Macdonald
9bbcd75d16
Fix for failure to check insertion point is at an existing item.
2017-11-16 14:56:20 +00:00
fredkiefer
7c68c30928
Protect against GSPrivateNativeCStringEncoding() corrupting the return
...
value of setlocale(). Bug #52331 reported by Jakub Wilk <jwilk@jwilk.net>.
2017-11-04 23:53:12 +01:00
stefanbidi
8eed1d780c
* Source/NSDateFormatter.m: Fix how UDateFormat is created. Fixes bug #52011 .
2017-10-24 18:15:44 -04:00
Richard Frith-Macdonald
8bd7c048ac
Improve handling of messaging to blocked thread
2017-09-06 09:32:07 +01:00
Stefan Bidigaray
952884dd6a
Fix bug in NSLocale ISO codes methods.
2017-08-24 11:03:11 -04:00
Richard Frith-Macdonald
f170693bca
Fix error with Location header
2017-08-21 11:25:44 +01:00
Wolfgang Lux
bc285396da
Characters outside the BMP cannot be converted to Latin 1 string encoding
2017-07-10 10:16:27 +02:00
Riccardo
6b455a589d
Fix GetTickCount()/GetTickCount64() for different Windows versions
2017-07-07 10:50:10 +02:00
Richard Frith-Macdonald
cc2ee1d59b
Improve diagnostic if reference count is incremented too far.
2017-07-03 14:33:32 +01:00