Skip to content

Harden FastWordpieceTokenizer, FastBertNormalizer, and PhraseTokenizer with#1510

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_912596984
Open

Harden FastWordpieceTokenizer, FastBertNormalizer, and PhraseTokenizer with#1510
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_912596984

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

Harden FastWordpieceTokenizer, FastBertNormalizer, and PhraseTokenizer with
bounds verification and initialization checks:

  • Prevent null pointer dereferences by validating required FlatBuffer fields.
  • Prevent OOB reads during detokenization by checking token IDs against vocab size.
  • Secure FastBertNormalizer against adversarial heap slicing by tracking string pool limits.

@copybara-service copybara-service Bot force-pushed the test_912596984 branch 2 times, most recently from 47da2ac to 5dbdc2f Compare May 8, 2026 18:39
…er with

  bounds verification and initialization checks:
  * Prevent null pointer dereferences by validating required FlatBuffer fields.
  * Prevent OOB reads during detokenization by checking token IDs against vocab size.
  * Secure FastBertNormalizer against adversarial heap slicing by tracking string pool limits.

PiperOrigin-RevId: 912596984
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