mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 16:33:49 +00:00
[FTP] Fix array index use before limits check. By Kudratov Olimjon using Cppcheck. CORE-8978
svn path=/trunk/; revision=67964
This commit is contained in:
parent
d6a45cb528
commit
0e02eb304d
1 changed files with 2 additions and 2 deletions
|
@ -1842,10 +1842,10 @@ dotrans(const char *name)
|
|||
char *cp2 = new;
|
||||
register int i, ostop, found;
|
||||
|
||||
for (ostop = 0; *(ntout + ostop) && ostop < 16; ostop++);
|
||||
for (ostop = 0; ostop < 16 && *(ntout + ostop); ostop++);
|
||||
for (cp1 = name; *cp1; cp1++) {
|
||||
found = 0;
|
||||
for (i = 0; *(ntin + i) && i < 16; i++) {
|
||||
for (i = 0; i < 16 && *(ntin + i); i++) {
|
||||
if (*cp1 == *(ntin + i)) {
|
||||
found++;
|
||||
if (i < ostop) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue