~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/tests/libsvn_subr/subst_translate-test.c

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
    svn_string_t *new_value = NULL;
116
116
    svn_boolean_t translated_to_utf8 = FALSE;
117
117
    svn_boolean_t translated_line_endings = TRUE;
118
 
    /* '�', which is 0xc6 in both ISO-8859-1 and Windows-1252 */
 
118
    /* The 'AE' ligature, which is 0xc6 in both ISO-8859-1 and Windows-1252 */
119
119
    svn_string_t *source_string = svn_string_create("\xc6", pool);
120
120
 
121
121
    SVN_ERR(svn_subst_translate_string2(&new_value, &translated_to_utf8,
397
397
      "01234567890123456789012345678901234567890123456789"
398
398
      "012345678901234567890123456789012345678901234567";
399
399
 
400
 
  /* The longest keyword that can be expanded: the value is empty. */ 
 
400
  /* The longest keyword that can be expanded: the value is empty. */
401
401
  const char keyword_z[]
402
402
    = "Q"
403
403
      "01234567890123456789012345678901234567890123456789"
500
500
  return SVN_NO_ERROR;
501
501
}
502
502
 
503
 
struct svn_test_descriptor_t test_funcs[] =
 
503
static int max_threads = 1;
 
504
 
 
505
static struct svn_test_descriptor_t test_funcs[] =
504
506
  {
505
507
    SVN_TEST_NULL,
506
508
    SVN_TEST_PASS2(test_svn_subst_translate_string2,
519
521
                   "test long keywords (issue 4350)"),
520
522
    SVN_TEST_NULL
521
523
  };
 
524
 
 
525
SVN_TEST_MAIN
 
526