Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ruby
prism
Repository navigation
Code
Issues
Pull requests
1
(1)
Discussions
Actions
Security and quality
Insights
More
items
Drop strlen when possible
- #4456
#4456
Merged
kddnewton
merged 26 commits into
main
ruby/prism:main
from
strlen
ruby/prism:strlen
Copy head branch name
Nov 24, 2026
Conversation
Commits
26
(26)
Checks
Files changed
Merged
Drop strlen when possible
#4456
kddnewton
merged 26 commits into
main
ruby/prism:main
from
strlen
ruby/prism:strlen
Copy head branch name
Commits
Commits on Nov 24, 2026
Track regexp modifiers directly without strlen
kddnewton
committed
3408310
View commit details
Copy full SHA for 3408310
Browse repository at this point
Track encoding length to avoid strlen
kddnewton
committed
6e6f9f0
View commit details
Copy full SHA for 6e6f9f0
Browse repository at this point
Track posix bracket name to avoid a strlen
kddnewton
committed
e59f227
View commit details
Copy full SHA for e59f227
Browse repository at this point
Fix up pm_shebang_find to not use strlen
kddnewton
committed
0004e3c
View commit details
Copy full SHA for 0004e3c
Browse repository at this point
Explicitly pass constant name length for synthesized nodes
kddnewton
committed
ad3b14d
View commit details
Copy full SHA for ad3b14d
Browse repository at this point
Use named errors for regexp diagnostics
kddnewton
committed
72fa537
View commit details
Copy full SHA for 72fa537
Browse repository at this point
Explicitly construct pm_parser_warn_ambiguous_binary_operator segments using macros
kddnewton
committed
612b50a
View commit details
Copy full SHA for 612b50a
Browse repository at this point
Build escape read warnings directly
kddnewton
committed
eea556c
View commit details
Copy full SHA for eea556c
Browse repository at this point
Build diagnostics directly for out of range warnings
kddnewton
committed
1bab2d8
View commit details
Copy full SHA for 1bab2d8
Browse repository at this point
Construct PM_ERR_REGEXP_UNKNOWN_OPTIONS error option directly
kddnewton
committed
c725121
View commit details
Copy full SHA for c725121
Browse repository at this point
Explicitly pass context length in predicate literal warning
kddnewton
committed
b94f8d1
View commit details
Copy full SHA for b94f8d1
Browse repository at this point
Construct string length literally for invalid magic comment warning
kddnewton
committed
0d901ed
View commit details
Copy full SHA for 0d901ed
Browse repository at this point
Construct unexpected backslash errors directly without strlen
kddnewton
committed
28d351d
View commit details
Copy full SHA for 28d351d
Browse repository at this point
Consolidate encoding string diagnostics into pm_encoding_string
kddnewton
committed
a5d3650
View commit details
Copy full SHA for a5d3650
Browse repository at this point
Construct diagnostics with token names directly
kddnewton
committed
b2db276
View commit details
Copy full SHA for b2db276
Browse repository at this point
Construct diagnostics with context name directly
kddnewton
committed
1e4011e
View commit details
Copy full SHA for 1e4011e
Browse repository at this point
Use node location for invalid block exit diagnostics
kddnewton
committed
f52ff3d
View commit details
Copy full SHA for f52ff3d
Browse repository at this point
Construct remaining diagnostics with strings directly
kddnewton
committed
99bfcc9
View commit details
Copy full SHA for 99bfcc9
Browse repository at this point
Track diagnostic message size so we do not have to recompute it
kddnewton
committed
960b753
View commit details
Copy full SHA for 960b753
Browse repository at this point
Explicitly reject NUL bytes in command line
kddnewton
committed
f5352d3
View commit details
Copy full SHA for f5352d3
Browse repository at this point
Do not use strlen when constructing scopes for eval
kddnewton
committed
1878dc0
View commit details
Copy full SHA for 1878dc0
Browse repository at this point
Explicitly take length for filepath and encoding in options
kddnewton
committed
15128ca
View commit details
Copy full SHA for 15128ca
Browse repository at this point
Explicitly take string lengths for string queries
kddnewton
committed
4c93d37
View commit details
Copy full SHA for 4c93d37
Browse repository at this point
Fix up pm_options_filepath_set usage in C++ test
kddnewton
committed
73e7cc5
View commit details
Copy full SHA for 73e7cc5
Browse repository at this point
Maintain signedness in pm_serialize_parse_errors_format
kddnewton
committed
1b2cdc3
View commit details
Copy full SHA for 1b2cdc3
Browse repository at this point
Fix up ASAN violation for string query
kddnewton
committed
e8a821f
View commit details
Copy full SHA for e8a821f
Browse repository at this point
You can’t perform that action at this time.