The attached JavaScript file causes an out-of-bounds access of the source buffer when fetching the source for one of the functions during delayed compilation. The out-of-bounds value is then treated as the pointer to the source. This is likely an exploitable condition.
In the debug build of Chakra, this script hits the following assert:
ASSERTION 19041: (/home/user/test_everywhere/ChakraCore/lib/Common/DataStructures/List.h, line 329) index >= 0 && index < this->count
Failure: (index >= 0 && index < this->count)
Illegal instruction (core dumped)
The attached script is a test case from the v8 (Chrome) test repository, minimized to show the issue.
This bug is subject to a 90 day disclosure deadline. After 90 days elapse
or a patch has been made broadly available, the bug report will become
visible to the public.