array bounds check fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6173 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
879db4220b
commit
950771d788
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ static SWIG_CSharpExceptions_t SWIG_csharp_exceptions[] = {
|
|||
|
||||
static void SWIG_CSharpThrowException(SWIG_CSharpExceptionCodes code, const char *msg) {
|
||||
SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpException].callback;
|
||||
if (code >=0 && (size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpExceptionCodes)) {
|
||||
if (code >=0 && (size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpExceptions_t)) {
|
||||
callback = SWIG_csharp_exceptions[code].callback;
|
||||
}
|
||||
callback(msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue