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

Fix buffer underflow when serial peer spews garbage #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 15, 2018

  1. Fix buffer underflow when serial peer spews garbage

    A board I got spews garbage on hard reset. Sometimes that garbage is IAC
    and it leads to len here getting negative and the loop eventually
    underflows the buf.
    
    Detect and avoid this silently.
    
    Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
    a3f committed Sep 15, 2018
    Configuration menu
    Copy the full SHA
    ff923a8 View commit details
    Browse the repository at this point in the history