mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 22:51:42 +02:00
a bit of security for a VARARR() (12314)
This commit is contained in:
parent
c4e0379408
commit
e4c9131b83
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-07-19 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 12314: Src/Zle/compmatch.c: a bit of security for a VARARR()
|
||||
|
||||
2000-07-19 Peter Stephenson <pws@cambridgesiliconradio.com>
|
||||
|
||||
* 12313: Doc/Zsh/metafaq.yo: bad phrasing corrected.
|
||||
|
|
|
@ -442,7 +442,7 @@ match_str(char *l, char *w, Brinfo *bpp, int bc, int *rwlp,
|
|||
{
|
||||
int ll = strlen(l), lw = strlen(w), oll = ll, olw = lw;
|
||||
int il = 0, iw = 0, t, ind, add, he = 0, bpc, obc = bc, bslash;
|
||||
VARARR(unsigned char, ea, ll + 1);
|
||||
VARARR(unsigned char, ea, (ll > lw ? ll : lw) + 1);
|
||||
char *ow;
|
||||
Cmlist ms;
|
||||
Cmatcher mp, lm = NULL;
|
||||
|
|
Loading…
Reference in a new issue