Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the following poc cause a assertion failure in "debug" build on ubuntu.
function opt(){ const v2 = [-1000000000.0]; v2.length = 4294967295; const v3 = v2.copyWithin(); return v3; } for(let i=0;i<0x200;i++){ opt(false); }
The text was updated successfully, but these errors were encountered:
I can see this failing, but want to check out something before I leave this and move to verifying other reports, this would only fail if the length is exactly equal to MaxArrayLength, I feel we might be off-by-one, there is the condition:
MaxArrayLength
if ((direction == -1 && (fromVal >= MaxArrayLength || toVal >= MaxArrayLength)) || (((fromVal + count) > MaxArrayLength) || ((toVal + count) > MaxArrayLength))) {
https://github.com/chakra-core/ChakraCore/blob/master/lib/Runtime/Library/JavascriptArray.cpp#L9452-L9454
Which doesn't catch MaxArrayLength when direction is 1, but its else branch would trip an assert on just that.
1
else
Sorry, something went wrong.
No branches or pull requests
the following poc cause a assertion failure in "debug" build on ubuntu.
The text was updated successfully, but these errors were encountered: