Merge pull request #4680 from sashashura/patch-6
Fixes Heap-buffer-overflow READ in Assimp::ASE::Parser::ParseLV1SoftSkinBlockpull/4641/head^2
commit
888468e8f7
|
@ -74,7 +74,7 @@ using namespace Assimp::ASE;
|
||||||
return; \
|
return; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
else if ('\0' == *filePtr) { \
|
if ('\0' == *filePtr) { \
|
||||||
return; \
|
return; \
|
||||||
} \
|
} \
|
||||||
if (IsLineEnd(*filePtr) && !bLastWasEndLine) { \
|
if (IsLineEnd(*filePtr) && !bLastWasEndLine) { \
|
||||||
|
@ -420,6 +420,8 @@ void Parser::ParseLV1SoftSkinBlock() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (*filePtr == '\0')
|
||||||
|
return;
|
||||||
++filePtr;
|
++filePtr;
|
||||||
SkipSpacesAndLineEnd(&filePtr);
|
SkipSpacesAndLineEnd(&filePtr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue