| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When v8.deserialized is passed a Buffer with non-zero byteOffset, it will call copy and try to copy more bytes than are allocated in the destination buffer. This will then call the SlowCopy method which will call memmove and write bytes after the buffer. This bug has been observed with the parcel tool.
|
While debugging this I also ended up adding this check to SlowCopy CHECK(to_copy <= (target_length - target_start)); Is it worth adding checks like that? |
Sorry, something went wrong.
|
PR #55261 is an attempt to fix the same issue. |
Sorry, something went wrong.
|
@ronag is this a duplicate of your PR? If so, feel free to close it as such :-) |
Sorry, something went wrong.
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files @@ Coverage Diff @@
## main #55269 +/- ##
==========================================
- Coverage 88.41% 88.40% -0.02%
==========================================
Files 652 652
Lines 186594 186589 -5
Branches 36054 36060 +6
==========================================
- Hits 164980 164954 -26
- Misses 14883 14900 +17
- Partials 6731 6735 +4
|
Sorry, something went wrong.
|
PR #55261 fixes the same issue and is hopefully merged soon. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When v8.deserialized is passed a Buffer with non-zero byteOffset, it will call copy and try to copy more bytes than are allocated in the destination buffer. This will then call the SlowCopy method which will call memmove and write bytes after the buffer.
This crash has been observed with the parcel tool.