"Husterer, Thomas RD-CP1" <Thomas.Husterer@heidelberg.com>


Found
r861063, r860815

r861063 | kou | 2006-08-05 06:28:04 -0500 (Sat, 05 Aug 2006)

Fix a bug of Svn::Client::Context#config= which causes segmentation fault.

Reported by: "Husterer, Thomas RD-CP1" <Thomas.Husterer@heidelberg.com>

* subversion/bindings/swig/svn_client.i
  (%ignore svn_client_ctx_t::config): Don't use default accessor generated
  by SWIG.
  (svn_client_set_config, svn_client_get_config): New wrapper function to
  access svn_client_ctx_t::config.
  (_svn_client_pool, _svn_client_config_pool): Remove needless function.
  (%typemap(argout) apr_hash_t *config,
   %typemap(in) apr_hash_t *config,
   %typemap(out) apr_hash_t *config): Remove needless typemap.

* subversion/bindings/swig/ruby/svn/client.rb
  (Svn::Client::Context#config,
   Svn::Client::Context#config=): Use wrapper accessor.

* subversion/bindings/swig/ruby/test/test_client.rb
  (SvnClientTest#test_set_config): New test.

* subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c
  (c2r_hash_with_key_convert): Return nil if target hash is NULL.


r860815 | kou | 2006-07-19 09:31:08 -0500 (Wed, 19 Jul 2006)

Fix a segmentation fault when an error occurs in log message callback.

Reported by: "Husterer, Thomas RD-CP1" <Thomas.Husterer@heidelberg.com>

* subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c
  (svn_swig_rb_get_commit_log_func2): Handle error correctly.

* subversion/bindings/swig/ruby/test/test_client.rb
  (SvnClientTest#test_log_msg_func_cancel): New test.