Skip to content

Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set.#26871

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_899065019
Apr 15, 2026
Merged

Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set.#26871
copybara-service[bot] merged 1 commit intomainfrom
test_899065019

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service bot commented Apr 13, 2026

Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set.

Still error out if the MSB in that is set (implying it would be an 11+ byte varint).

This is not really functional change; today this flow is just silently 'weird' where readVarint64() can return a float64 since php silently promotes the type when it doesn't fit.

@copybara-service copybara-service bot force-pushed the test_899065019 branch 4 times, most recently from fe7a613 to 5cdef4d Compare April 13, 2026 21:09
@copybara-service copybara-service bot changed the title Pure PHP: Reject 10-byte varints with bit above the 64th bit set. Pure PHP: cleanly ignore bits in the 10-byte varints with bit above LSB set. Apr 13, 2026
@copybara-service copybara-service bot force-pushed the test_899065019 branch 3 times, most recently from d8588c3 to db13836 Compare April 14, 2026 13:50
…e are silently discarded (except for the continuation bit which parse-fails).

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