summaryrefslogtreecommitdiff
path: root/glib/glibmm/arrayhandle.cc
Commit message (Collapse)AuthorAgeFilesLines
* Vectorutils, ArrayHandle: Check for NULL pointers.Krzesimir Nowak2011-03-211-1/+1
| | | | | | | | | | | | | | | * glib/glibmm/vectorutils.[h|cc]: Don't crash in compute_array_size2, when NULL is passed - in that case just return 0. Also, array_to_vector method return empty vector in such case. * glib/glibmm/arrayhandle.[h|cc]: Set array_size to zero if passed array is NULL. * tests/glibmm_null_vectorutils/main.cc: New test for NULL arrays and lists for vectorutils. * tests/glibmm_null_containerhandle/main.cc: New test for NULL arrays and lists for containerhandles. * tests/Makefile.am: Added new tests to build. Spotted by Kalev Lember. Bug #645245.
* Added missing files.Krzesimir Nowak2011-02-211-0/+38