mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user