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

Sanitize strings from /sys/class/power_supply #1984

Merged
merged 1 commit into from
Mar 3, 2021

Commits on Mar 3, 2021

  1. Sanitize strings from /sys/class/power_supply

    Avoid panic on invalid UTF-8 from /sys/class/power_supply by
    sanitizing strings parsed from the kernel.
    * Add a broken string to the test fixtures.
    
    Fixes: #1979
    
    Signed-off-by: Ben Kochie <superq@gmail.com>
    SuperQ committed Mar 3, 2021
    Configuration menu
    Copy the full SHA
    23e5b24 View commit details
    Browse the repository at this point in the history