Input processor crashes if second event with same name is created

When allocating a new event, if the same name is used, no allocation is
created and NULL is returned.  We start trying to use the returned value
which seg-faulted.  I added a check to only continue if the returned value
from the allocation is not NULL.

refs #149
This commit is contained in:
Alex Lin 2015-12-02 10:44:27 -06:00
parent c3b886c6e5
commit 09c467e423
14 changed files with 51 additions and 0 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ lib_Darwin_*
*.dox *.dox
Makefile_jsc_dirs Makefile_jsc_dirs
.DS_Store .DS_Store
trick_test

View File

@ -17,6 +17,7 @@ S_default.dat
S_document.xml S_document.xml
S_library_list S_library_list
S_main_* S_main_*
T_main_*
S_sie.resource S_sie.resource
S_source.cpp S_source.cpp
S_source.hh S_source.hh

4
trick_sims/SIM_trickcomm/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
tc_client
tc_client.dSYM
tc_server
tc_server.dSYM

View File

@ -0,0 +1,5 @@
DPC_test
DPM_test
DS_test
*.o

View File

@ -0,0 +1,3 @@
*.o
BC635Clock_test
TPROCTEClock_test

View File

@ -0,0 +1,2 @@
*.o
Executive_test

View File

@ -0,0 +1,2 @@
*.o
Integrator_unittest

View File

@ -0,0 +1,20 @@
*.o
.icg_no_found
Bitfield_tests
MM_alloc_deps
MM_clear_var_unittest
MM_creation_unittest
MM_declare_extern_var_unittest
MM_declare_var_2_unittest
MM_declare_var_unittest
MM_delete_var_unittest
MM_get_enumerated
MM_read_checkpoint
MM_ref_attributes_unittest
MM_ref_name_from_address
MM_resize_array_unittest
MM_sizeof_type_unittest
MM_strdup_unittest
MM_write_checkpoint
MM_write_checkpoint_hexfloat
MM_write_var_unittest

View File

@ -0,0 +1,3 @@
*.o
MonteCarlo_exceptions
MonteCarlo_test

View File

@ -0,0 +1,2 @@
*.o
ScheduledJobQueue_test

View File

@ -0,0 +1,2 @@
*.o
ITimer_test

View File

@ -0,0 +1 @@
comm_test

View File

@ -0,0 +1,2 @@
*.o
Interpolator_unittest

View File

@ -0,0 +1,3 @@
*.o
UnitConvTestSuite
UnitTestSuite