Skip to content

Conversation

@simei2k
Copy link

@simei2k simei2k commented May 10, 2025

Description

This pull request addresses a security vulnerability in the write() method by implementing proper bounds checking to prevent integer overflow.

Issue

The original implementation used a pattern vulnerable to integer overflow by checking off + len > b.length, which could wrap around to a small value when both offset and length are large, bypassing the bounds check.

This vulnerability was also identified in ReadyTalk/avian@0871979 and fixed subsequently.

References:

  1. ReadyTalk/avian@0871979
  2. https://nvd.nist.gov/vuln/detail/CVE-2019-1010296

This pull request addresses a security vulnerability in the write() method by implementing proper bounds checking to prevent integer overflow.

Issue
The original implementation used a pattern vulnerable to integer overflow by checking off + len > b.length, which could wrap around to a small value when both offset and length are large, bypassing the bounds check.

This vulnerability was also identified in ReadyTalk/avian@0871979 and fixed subsequently.

References:
1. ReadyTalk/avian@0871979
2. https://nvd.nist.gov/vuln/detail/CVE-2019-1010296

Signed-off-by: Lim Sim Yee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant