William S Fulton
d918bddfc0
Fix segfaults when using filename paths greater than 1024 characters in length - use String * and heap instead of fixed size static char array buffers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-18 00:45:18 +00:00
William S Fulton
e450d4ebac
Remove some possible buffer overflows
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-18 00:44:39 +00:00
William S Fulton
475c6c6ce0
Suppress some unchecked return value warnings for Coverity
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-18 00:44:19 +00:00
William S Fulton
0baa87809f
Remove unnecessary non-null check
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-18 00:43:53 +00:00
William S Fulton
111b517372
Fix possible null dereferences
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-18 00:43:31 +00:00
William S Fulton
69b32d921f
Remove pointless null check
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-18 00:43:09 +00:00
William S Fulton
b107f57e59
NULL pointer clarification in Swig_new_subdirectory
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-16 19:39:50 +00:00
William S Fulton
3d6b068b8c
Add some assertions around use of Tell
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-16 19:38:48 +00:00
William S Fulton
c0919870f8
Add assertion for possible failure displaying warning
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-16 19:37:40 +00:00
William S Fulton
5e13cd3475
Consider strchr failing in a few places
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-16 19:36:46 +00:00
William S Fulton
ec08824561
Remove pointless null pointer check - Coverity REVERSE_INULL.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-16 19:35:33 +00:00
William S Fulton
e87e94572e
Fix unused variables found by Coverity checker
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-16 19:33:43 +00:00
William S Fulton
e475ce1d6b
Fix race condition 'time of check time of use' - TOCTOU - when creating subdirectories.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-16 19:32:40 +00:00
William S Fulton
684bd8e472
Minor warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:48:09 +00:00
William S Fulton
fd24b188e2
Fix Coverity 'Uninitialized pointer fields' - member variables are now initialized
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:17:28 +00:00
William S Fulton
46d2486115
Resource leak fixes (or hiding them from Coverity static analysis tool by using String instead of char *)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:16:54 +00:00
William S Fulton
5a1e82a2f4
Remove DohClose (Close) and replace with calls to DohDelete (Delete) to fix some minor memory leaks in most uses of NewFile.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:16:07 +00:00
William S Fulton
61b4c1cbcd
Fix 'name' attribute for explicitly defined constructors and destructors if the associated class was in a namespace, eg a correct fully qualified name might be Space::Klass::~Klass, but it was Space::~Klass, now it is simply ~Klass (names are now consistent with implicitly added constructors/destructors).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:21:51 +00:00
William S Fulton
aeebd394f3
Fix incorrect implicit constructor and destructor names in the symbol tables. Fix some feature matching issues for implicit destructors and implicit constructors and impliciti copy constructors added with %copyctor. Also improves consistency in named typemap lookup rules.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:19:47 +00:00
William S Fulton
d4b7275f51
Fix Swig_scopename_last. It was truncating the first two letters of a symbol if the symbol did not contain any qualifiers. Does not seem to change much currently except some generated error messages in overloaded templated methods in classes. However the fix is needed for some commits shortly forthcoming.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:18:52 +00:00
William S Fulton
7aa339cb3f
Swig_symbol_string_qualify for destructors - bug exposed after last commit when fully qualifying destructor names during typemap searches
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:17:10 +00:00
William S Fulton
421139a5fe
Fix some subtle named output typemap lookup misses, the fully qualified name was not always being in all cases such as member variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13878 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:16:28 +00:00
Ian Lance Taylor
786d883d45
Fix Go support for enums to work correctly when Go int type is 64 bits.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-30 23:38:57 +00:00
William S Fulton
b1ee062d2a
Cosmetic variable renaming for consistency across language modules
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-27 17:38:05 +00:00
William S Fulton
f6229d4b73
Fix director typemap searching so that a typemap specified with a name will be correctly matched. Previously the name was ignored during the typemap search. Implemented by ensuring the 'type' attribute in the Node is set up correctly and using the usual Swig_typemap_lookup on the Node.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-27 17:37:34 +00:00
William S Fulton
b17a77c6ea
Support special variable expansion in %extend.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-11 19:28:02 +00:00
William S Fulton
2598a1daf2
Two additional special variable are expanded in %exception - $parentname
...
and $parentsymname
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13870 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-11 19:24:24 +00:00
William S Fulton
77d9ad5354
Fix multiply defined symbol in target language scope
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13869 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-11 19:22:13 +00:00
Ian Lance Taylor
a42882dcee
Adjust for change in the size of the Go type int. Until some time in
...
the future, require a -intgosize option when invoking SWIG. Otherwise
there is no reliable way for us to know the size of int, and we need
to know.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-05 04:58:00 +00:00
Ian Lance Taylor
fad2bd5e1e
Ignore templatized methods in base classes.
...
From Nigel Choi.
Fixes issue 3573098.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13857 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-02 14:54:28 +00:00
Ian Lance Taylor
8af91dcc75
If the user explicitly directs that the Go type be a slice, don't use
...
a pointer to a slice even if the actual type is reference. from John
Admanski.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-01 17:18:27 +00:00
William S Fulton
bc43673a86
Add new warning if an empty template declaration is used on a base class, minor docs improvement for empty template declarations.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-14 22:25:35 +00:00
Joseph Wang
33bb317b61
make ExternalReference slot ref to contain reference
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-26 03:35:04 +00:00
William S Fulton
be1c4d2e68
Revert r13601 as it breaks older versions of R
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-20 21:20:19 +00:00
William S Fulton
009c191430
Add assumeoverride feature option for Java directors to improve performance when it can be assumed that all methods are overridden by the Java derived classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 21:41:08 +00:00
Joseph Wang
fad95da7f5
change R components so that pointers are visible through ref
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-12 15:21:39 +00:00
William S Fulton
8a94438c7d
Fix segfault in Allegrocl - a proper fix is still needed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 06:08:36 +00:00
William S Fulton
19a29c3212
Fix use of deleted memory in R module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 06:07:34 +00:00
William S Fulton
cad26e49fe
Fix use of deleted memory in D module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 06:06:31 +00:00
William S Fulton
5f294a1404
Fix use of deleted memory in Go - note changes director_enum and
...
director_basic tests output.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13555 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 06:05:30 +00:00
William S Fulton
b6f6fcd6d8
Memory corruption fixes highlighted by DOH_MEMORY_DEBUG_POOL in Python
...
director tests.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13554 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-07 21:58:52 +00:00
William S Fulton
45a259d274
Correct accidental turning on of DOH_DEBUG_MEMORY_POOLS
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 22:18:39 +00:00
William S Fulton
315dc5a879
Fix some memory issues - use of deleted memory highlighted by DOH_DEBUG_MEMORY_POOLS
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 22:17:32 +00:00
William S Fulton
b989e43922
Fix incorrect object deletion in C# module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 16:17:32 +00:00
William S Fulton
766128065f
Error checking for stale DOH object use - also with documentation.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 16:16:23 +00:00
William S Fulton
cdfa81e572
Add some error checking for stale DOH object use
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13520 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 15:53:56 +00:00
William S Fulton
2d24ca37d1
Fix invalid code sometimes being generated for C# director methods with many arguments
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13519 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 15:49:43 +00:00
Oliver Buchtala
db0f2d7a8e
Fix pedantic warnings in fio.c methods.
...
From: Oliver Buchtala <oliver.buchtala@googlemail.com>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 08:38:16 +00:00
Oliver Buchtala
18aa801bd0
Fix bug in emit_action.
...
Before, it was possible that two catch(...) blocks
were generated (for varargs and undefined typemap).
From: Oliver Buchtala <oliver.buchtala@googlemail.com>
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13511 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 08:37:59 +00:00
William S Fulton
33098764b7
Remove unnecessary keyword warning when parsing 'using'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13509 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-04 22:38:44 +00:00