Re: [PATCH] Fix the out-of-bounds memory access in the 'test_string_matching' test

2013-07-29 Thread Philip Martin
Evgeny Kotkov writes: > Fix the out-of-bounds memory access in test_string_matching_test. Follow-up > to r1505336. > > * subversion/tests/libsvn_subr/string-test.c > (test_string_matching): Correctly initialize the 'max_match' value to avoid > out-of-bounds memory access. > > Patch by: Evg

[PATCH] Fix the out-of-bounds memory access in the 'test_string_matching' test

2013-07-28 Thread Evgeny Kotkov
Hi, I've noticed that the test 'test_string_matching' introduced in r1505336 [1] violates the contracts of the svn_cstring__match_length and svn_cstring__reverse_match_length functions: [[[ Return the number of bytes before A and B that don't differ. If no difference can be found in the