diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-04-21 14:02:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-04-21 14:02:35 +0200 |
commit | d82a2a990bc329754e1b61c5af669c76ac202497 (patch) | |
tree | b7655ae9701795e9646749c9b0a08a7b0de43a49 /src/testdir/test44.in | |
parent | f9bde2b152d3344c694c5e1ca629156b34f1a627 (diff) |
patch 7.4.704v7.4.704
Problem: Searching for a character matches an illegal byte and causes
invalid memory access. (Dominique Pelle)
Solution: Do not match an invalid byte when search for a character in a
string. Fix equivalence classes using negative numbers, which
result in illegal bytes.
Diffstat (limited to 'src/testdir/test44.in')
-rw-r--r-- | src/testdir/test44.in | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/testdir/test44.in b/src/testdir/test44.in index 69fbb9434e..23bb4f815f 100644 --- a/src/testdir/test44.in +++ b/src/testdir/test44.in @@ -24,17 +24,25 @@ x:" Now search for multi-byte with composing char x:" find word by change of word class /ち\<カヨ\>は x:" Test \%u, [\u] and friends +:" c /\%u20ac -x/[\u4f7f\u5929]\+ -x/\%U12345678 -x/[\U1234abcd\u1234\uabcd] -x/\%d21879b -x/ [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e -x/ [[=a=]]* [[=b=]]* [[=c=]]* [[=d=]]* [[=e=]]* [[=f=]]* [[=g=]]* [[=h=]]* [[=i=]]* [[=j=]]* [[=k=]]* [[=l=]]* [[=m=]]* [[=n=]]* [[=o=]]* [[=p=]]* [[=q=]]* [[=r=]]* [[=s=]]* [[=t=]]* [[=u=]]* [[=v=]]* [[=w=]]* [[=x=]]* [[=y=]]* [[=z=]]*/e -x:" Test backwards search from a multi-byte char +x:" d +/[\u4f7f\u5929]\+ +x:" e +/\%U12345678 +x:" f +/[\U1234abcd\u1234\uabcd] +x:" g +/\%d21879b +x:" h +/ [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e +x:" i +/ [[=a=]]* [[=b=]]* [[=c=]]* [[=d=]]* [[=e=]]* [[=f=]]* [[=g=]]* [[=h=]]* [[=i=]]* [[=j=]]* [[=k=]]* [[=l=]]* [[=m=]]* [[=n=]]* [[=o=]]* [[=p=]]* [[=q=]]* [[=r=]]* [[=s=]]* [[=t=]]* [[=u=]]* [[=v=]]* [[=w=]]* [[=x=]]* [[=y=]]* [[=z=]]*/e +x:" j Test backwards search from a multi-byte char /x x?. -x:let @w=':%s#comb[i]nations#œ̄ṣ́m̥̄ᾱ̆́#g' +x:" k +:let @w=':%s#comb[i]nations#œ̄ṣ́m̥̄ᾱ̆́#g' :@w :?^1?,$w! test.out :e! test.out |