Conversation
|
OK — many tests omit Now let me do a final check — the Let me now review the complete picture. Here's my analysis: encoding.c++: The fix replaces an unsafe buffer.c++ (indexOfBuffer):
buffer.c++ (indexOfString):
Tests: Properly test the exact scenarios — odd byte offsets for both TextDecoder and Buffer.indexOf with UCS-2/UTF-16LE encoding. Backward compatibility: This is a pure bug fix (fixing UB from alignment violations). The behavioral change is going from crashing/UB to correct behavior, which doesn't need a compat flag. I don't see any actionable issues with this PR. The alignment fixes are correct, the approach is sound (copy to aligned buffer), and the tests cover the scenarios. LGTM |
No description provided.