diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2026-05-08 20:27:32 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2026-05-16 18:28:29 +0200 |
| commit | 5c8077c917411605460e9ac9b4d51abf600b478a (patch) | |
| tree | e80fbfddb2f1c72e1f1261d27ec10d8c4a348534 /Completion/User/_java | |
| parent | 54545: A few very minor things coverity complained about (diff) | |
| download | zsh-5c8077c917411605460e9ac9b4d51abf600b478a.tar zsh-5c8077c917411605460e9ac9b4d51abf600b478a.tar.gz zsh-5c8077c917411605460e9ac9b4d51abf600b478a.tar.bz2 zsh-5c8077c917411605460e9ac9b4d51abf600b478a.tar.lz zsh-5c8077c917411605460e9ac9b4d51abf600b478a.tar.xz zsh-5c8077c917411605460e9ac9b4d51abf600b478a.tar.zst zsh-5c8077c917411605460e9ac9b4d51abf600b478a.zip | |
54546: Remove incorrect array access that was also never used
c always comes from ingetc() which does this,
if (itok(lastc = (unsigned char) *inbufptr++))
continue;
so it is 1) always in the range 0-255, and 2) never an itok character.
That means that the access ztokens[c - Pound] where Pound is a signed
integer would be accessing an element in the range 164-419 or so, while
ztokens is 30 elements large. Luckily two wrongs made a right here, but
still, remove it.
Diffstat (limited to 'Completion/User/_java')
0 files changed, 0 insertions, 0 deletions
