Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase errno cache and guard against IOOBE #13254

Merged
merged 1 commit into from Feb 28, 2023
Merged

Increase errno cache and guard against IOOBE #13254

merged 1 commit into from Feb 28, 2023

Commits on Feb 28, 2023

  1. Increase errno cache and guard against IOOBE

    Motivation:
    
    In the past we cached up to 512 errno values and used this cache to lookup the string representation without checking if the value if > 512. This value might be a bit low as more errno values are added over the time.
    
    Modifications:
    
    - Cache up to errno code 2048
    - Use JNI call if errno code was not cached and so not throw an IOOBE.
    
    Result:
    
    No more exceptions on un-cached errno codes
    normanmaurer committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    76ef861 View commit details
    Browse the repository at this point in the history