Skip to content

null - #16

Closed
msmhrt wants to merge 1 commit into
mozilla:masterfrom
msmhrt:fix/bug369890
Closed

null#16
msmhrt wants to merge 1 commit into
mozilla:masterfrom
msmhrt:fix/bug369890

Conversation

@msmhrt

@msmhrt msmhrt commented Oct 29, 2011

Copy link
Copy Markdown
Contributor

null

@msmhrt msmhrt closed this Nov 1, 2011
anivar added a commit to anivar/rhino that referenced this pull request Dec 18, 2025
…de overflow, and codepoints

Fixed 4 additional MEDIUM priority security issues:

Issue mozilla#12: Added validation in build() to prevent bitmap size overflow
- Check length is non-negative and within MAX_CODE_POINT range
- Check for integer overflow in byteLength calculation

Issue mozilla#13: Added validation in addCharacterRange() to check both c1 and c2
before calculating byte indices to prevent out-of-bounds access

Issue mozilla#14: Added overflow check in emitREBytecode() before writing to
program array to prevent bytecode buffer overflow

Issue mozilla#16: Added codepoint validation in classMatcher() to ensure codepoint
is within valid Unicode range (0 to MAX_CODE_POINT)

All fixes add defensive validation without changing functionality.
Tests pass successfully.
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